假设类中有一个属性public Nullable<System.DateTime> test { get; set; }
我使用遍历类属性的方式获取每一个属性名称,但是
foreach (PropertyInfo property in testclass.GetType().GetProperties())
property.PropertyType.Name 取得的确是Nullable`1是因为属性名过长还是因为"<"惹的祸?请问这种问题如何解决呢?