泛型

一、獲取屬性值blog

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

二、獲取屬性字段類型class

   T.GetType().GetProperty(屬性字段名).PropertyType.FullNamedi

相關文章
相關標籤/搜索