泛型

1、获取属性值

    string val=T.GetType().GetProperty(属性字段名).GetValue(T, null).ToString()

2、获取属性字段类型

   T.GetType().GetProperty(属性字段名).PropertyType.FullName

原文地址:https://www.cnblogs.com/jsping/p/3957339.html