When writing a C++/CLI library, for the sake of interoperability, we might need to use these features in C++/CLI too.
Mapping:
| C# | C++/CLI |
|---|---|
| ref x | x% // Managed type reference |
| out x | [System::Runtime::InteropServices::Out] x % |
| C# | C++/CLI |
|---|---|
| ref x | x% // Managed type reference |
| out x | [System::Runtime::InteropServices::Out] x % |