C# exposing to COM - interface inheritance

前端 未结 4 1858
没有蜡笔的小新
没有蜡笔的小新 2020-12-01 15:13

Say I have a class BaseClass that implements IBaseClass

Then I have an interface IClass that inherits IBaseClass.

Then I have a class named class that implem

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-01 15:28

    use [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] as an attribute for the interface that extends the others. it is a workaround.

提交回复
热议问题