鉴于这种情况
interface A {}
class B : A {}
A b = new B();
如何检查对象 b 是从接口(interface) A 创建的?
最佳答案
关于c# - 如何检查对象实现接口(interface),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5153600/
标签 c# inheritance types
鉴于这种情况
interface A {}
class B : A {}
A b = new B();
如何检查对象 b 是从接口(interface) A 创建的?
最佳答案
关于c# - 如何检查对象实现接口(interface),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5153600/