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
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.