【发布时间】:2010-10-22 02:33:38
【问题描述】:
public bool IsList(object value)
{
Type type = value.GetType();
// Check if type is a generic list of any type
}
检查给定对象是列表还是可以转换为列表的最佳方法是什么?
【问题讨论】:
-
也许你在这里找到答案stackoverflow.com/questions/755200/…
标签: c# reflection list generics