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);

posted @ 2012-11-22 16:03  紫红的泪  阅读(1231)  评论(0编辑  收藏  举报