C#判断一个类型是否是集合类型 发表评论 C#判断一个类型是否是集合类型: typeof(T).GetTypeInfo().ImplementedInterfaces.Contains(typeof(IEnumerable))