且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在C ++ / CLI中显式/隐式实现接口成员?

更新时间:2022-06-20 02:16:28

因为nobugz说,你不能明确实现IDisposable。

As nobugz says, you can't explicitly implement IDisposable.

所以,假设你的问题的标题是准确的,你想明确实现接口成员(或在C ++ / CLI中支持的显式覆盖,但我不认为在C#中可能,C ++ / CLI还提供更多的灵活性来覆盖具有相同功能的多个v表槽),参见:

So, assuming that the title of your question is accurate, and you want to have explicit implementation of interface members (or explicit overrides which are supported in C++/CLI but I don't think are possible in C#, C++/CLI also provides more flexibility to override multiple v-table slots with the same function), see:

http://msdn.microsoft.com/ en-us / library / fw0bbh51.aspx