假设以下类型定义:
public interface IFoo<T> : IBar<T> {} public class Foo<T> : IFoo<T> {}
当只有受损的类型可用时,如何确定类型是否Foo实现了通用接口IBar<T>?
Foo
IBar<T>
.net c# reflection
.net ×1
c# ×1
reflection ×1