放code的地方
using System.Reflection; object obj; Type t = obj.GetType(); PropertyInfo pi = t.GetProperty("YourPropertyName"); object YourValue = pi.GetValue(obj,null)
張貼留言
沒有留言:
張貼留言