0
我正在使用SDK中的COM接口。我想将辅助方法添加到基本接口,所以我从它派生了一个类,但在派生对象中没有可见的基方法。这是为什么?我怎样才能完成我的需求?从COM接口派生 - 基本方法不可见
public class DerivedClass : BaseCOMInterface {}
BaseCOMInterface b = new BaseCOMInterface();
Derived d = new DerivedClass();
b.Method(); // this works
d.Method(); // Method() not found
添加在“公共”修饰符结果“类型应为”错误 – Yevgeniy
@Yevgeniy ,对不起,这是'C++''ism,请参阅我的编辑。 – GreatAndPowerfulOz