【发布时间】:2013-04-04 20:17:22
【问题描述】:
我有一些实现接口的类:
class FirstImplementer : IInterface { ... }
class AnotherImplementer : IInterface { ... }
在代码的某处,我得到了 IInterface 实例的列表。
List<IInterface> MyList;
我想知道每个 IInterface 实例的具体实例的实现类是什么(FirstImplementer 或 AnotherImplementer)。
【问题讨论】:
标签: c# reflection interface