ref and out in C++/CLI

主要用在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);

原文地址:https://www.cnblogs.com/codingmylife/p/2782804.html