相关疑难解决方法(0)

如何通过反射获取接口基类型?

public interface IBar {} 
public interface IFoo : IBar {}

typeof(IFoo).BaseType == null
Run Code Online (Sandbox Code Playgroud)

我怎样才能得到IBar?

c# reflection interface

24
推荐指数
2
解决办法
3万
查看次数

标签 统计

c# ×1

interface ×1

reflection ×1