title: Can I use a reference inside a C# function like C++?
body: <p>In C++ I can do this:</p>
  
  <pre><code> int flag=0,int1=0,int2=1;
   int &amp;iRef = (flag==0?int1:int2);
   iRef +=1;
  </code></pre>
  
  <p>with the effect that int1 gets incremented.</p>
  
  <p>I have to modify some older c# code and it would be really helpful if I could do something similar, but I'm thinking ... maybe not. Anybody?</p>