title: Swap two variables without using ref/out in C#
body: <p>Is it possible to swap two variables without using ref/out keyword in C#(i.e. by using unsafe)?</p>
  
  <p>for ex,</p>
  
  <pre><code>        swap(ref x,ref y);//It is possbile to by passing the reference
  </code></pre>
  
  <p>But, Is there any other way of doing the same thing. In the swap function you can use a temp variable. But, How to swap the variables without using ref/out keywords in C#?</p>