I'm attempting to access C++ code from a managed .NET app. To do so, I'll need to write .NET wrappers for the unmanaged C++ classes I need, in C++/CLI.
If C++/CLI compiles to plain old CIL, then why can't you write the same wrapper class in C# using an unsafe class, since C# supports pointers as well?
Is it because the C++/CLI compiler is different from the C# compiler and can reference native C++ code while C# can't?
If I can, I'd like to, because I'm more familiar with the C# syntax than with C++.