用反射来在方法里获取泛型对象的属性 1. 获取属性对象 PropertyInfo pCode = TObject.GetType().GetProperty("Code"); 2. pCode.GetValue(item, null).ToString()