gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 22:22:58 25 4
gpt4 key购买 nike

接口(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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com