ref and out in C++/CLI

前端 未结 2 586
孤独总比滥情好
孤独总比滥情好 2021-02-02 09:18

I know that the C++/CLI code

void foo(Bar^% x);

transforms into

Void foo(ref Bar x);

What is the C++/CLI cod

2条回答
  •  无人及你
    2021-02-02 09:29

    You can use the OutAttribute:

    using namespace System::Runtime::InteropServices;    
    void foo([Out] Bar^% x); 
    

提交回复
热议问题