title: What is the syntax to pass parameters by reference from c# to c++/cli?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6616599/does-the-symbol-replace-cs-ref-in-parameter-passing-in-c-cli-code">Does the ^ symbol replace C#&#39;s “ref” in parameter passing in C++/CLI code?</a>  </p>
  </blockquote>
  
  
  
  <p>I have googled it and searched this forum, but there does not seem to be any answer.</p>
  
  <p>If it was from c# to c#, it would be something like <code>void MyFunction(ref int var)</code>. When called, parameters are also preceded by ref. If it was from c++ to c++ it would be <code>void MyFunction(int &amp;var)</code>. Thanks.</p>