NDepend:检查类型是否实现了泛型接口
是否有方法使用NDepend检查类型是否使用某些泛型参数实现泛型类型NDepend:检查类型是否实现了泛型接口,ndepend,Ndepend,是否有方法使用NDepend检查类型是否使用某些泛型参数实现泛型类型 实现的接口属性返回泛型类型,但没有特定的泛型参数。例如,如果某个类型实现了IList,我想说否 您可以编写如下查询: from t in Types where t.Implement("System.Collections.Generic.IList<T>") select t from t in Types where t.Implement("System.Collections.Generic.IList
实现的接口属性返回泛型类型,但没有特定的泛型参数。例如,如果某个类型实现了IList,我想说否 您可以编写如下查询:
from t in Types where t.Implement("System.Collections.Generic.IList<T>")
select t
from t in Types where t.Implement("System.Collections.Generic.IList<System.Int32>")
select t
但不能编写如下查询:
from t in Types where t.Implement("System.Collections.Generic.IList<T>")
select t
from t in Types where t.Implement("System.Collections.Generic.IList<System.Int32>")
select t
所以答案是否定的。有没有办法用NDepend检查一个类型是否实现了一个具有特定泛型参数的泛型类型
这种情况将来可能会发生变化,请随时向添加请求。Thank.s我创建了一个功能请求: