【发布时间】:2010-12-06 23:03:40
【问题描述】:
我需要知道类中的属性类型是否是使用 PropertyInfo 类的泛型集合(List、ObservableCollection)。
foreach (PropertyInfo p in (o.GetType()).GetProperties())
{
if(p is Collection<T> ????? )
}
【问题讨论】:
标签: c# generics collections propertyinfo