开发者

How do you extend a C# interface in C++/CLR?

开发者 https://www.devze.com 2023-01-21 21:25 出处:网络
I\'m really frustrated with this one.I\'m trying to extend a C# created interface in C++/CLR.The interface has one method and I\'ve declared it in my class, but the compiler keeps telling me that I mu

I'm really frustrated with this one. I'm trying to extend a C# created interface in C++/CLR. The interface has one method and I've declared it in my class, but the compiler keeps telling me that I must still provide an implementation for the interface method. What more can I do? What am I missing!?

Does anyone have any e开发者_开发百科xamples of how to extend a C# interface in CLR?


I figured it out! I needed to make the implementation of elements virtual. I hope this helps other people with this same issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消