【发布时间】:2011-08-16 11:49:39
【问题描述】:
关于“Implementations of interface through Reflection”的答案显示了如何获取接口的所有实现。但是,给定一个通用接口 IInterface<T>,以下内容不起作用:
var types = TypesImplementingInterface(typeof(IInterface<>))
谁能解释我如何修改该方法?
【问题讨论】:
标签: c# .net generics reflection interface