C#用反射如何判断类型是集合类

2025-03-24 06:23:10
推荐回答(1个)
回答(1):

typeof(ICollection).IsAssasxxxableFrom(你的类型)