c# - 为什么我的接口(interface)的 BaseType 为空?

标签 c# oop inheritance interface

接口(interface)定义

public interface IPayeePayrollRunInitialPayElementData : IPayeePayrollRunPayElementData

但是在我的代码中,我的接口(interface)的 BaseType 是空的。我无法理解这一点!

Breakpoint and watches

最佳答案

因为它是 defined会这样吗?

Interfaces inherit from zero or more base interfaces; therefore, this property returns null if the Type object represents an interface. The base interfaces can be determined with GetInterfaces or FindInterfaces.

关于c# - 为什么我的接口(interface)的 BaseType 为空?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16607061/

相关文章:

c++ - 智能指针和不可复制的成员字段

oop - VBA 中的公共(public)对象模块是什么?

Python 类外键继承

c# - 将参数传递给 NUnit 中的 TestDelegate

c# - 在 ASP.NET Core 1.0 中使用 ModelState 和 RedirectToAction 进行异步

perl - 通过 "->"调用方法与传递类/对象作为第一个参数之间到底有什么区别?

Java使用父类型的对象引用访问不同包中子类中的 protected 成员

c++ - 将 C++ 接口(interface)实例化为子类

c# - 反射不触发参数化构造函数c#

c# - Simple Injector 是否支持 MVC 4 ASP.NET Web API?