主要用在Managed C++做Native C++ Wrapper时,
void foo(Bar^% x); => void foo(ref Bar x);
using namespace System::Runtime::InteropServices;
void foo([Out] Bar^% x); => void foo(out Bar x);
主要用在Managed C++做Native C++ Wrapper时,
void foo(Bar^% x); => void foo(ref Bar x);
using namespace System::Runtime::InteropServices;
void foo([Out] Bar^% x); => void foo(out Bar x);