Using C# extension methods from managed C++/CLI

后端 未结 1 547
自闭症患者
自闭症患者 2020-12-11 15:52

Forgive me if my terminology is a little off. My knowledge of managed C++/CLI is very limited.

I have an MFC application that uses a dll with the /clr option enable

相关标签:
1条回答
  • 2020-12-11 16:16

    You have to just call it like a static method:

    IPAddressExtensions::GetSubnetMask(address);
    

    The "extension" method is more of a compiler trick than a difference in the CLR.

    0 讨论(0)
提交回复
热议问题