110,566
社区成员
发帖
与我相关
我的任务
分享
var customObject = new { ID = 9527, Name = "王二麻子" };
Type type = customObject.GetType();
foreach (System.Reflection.PropertyInfo pi in type.GetProperties())
{
this.tbEmployeeID.Text += pi.GetValue(customObject, null);
}