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