title: Compare two managed references
body: <p>Is it possible to compare two managed references (of type <code>ref T</code>) if they are equal? I don't mean references to objects, but references to variables. Example:</p>
  
  <pre><code>public static bool Compare(ref int a, ref int b)
  {
      return ref a == ref b; //something like that, not possible this way in C#
  }
  
  int x, y;
  Compare(ref x, ref x); //true
  Compare(ref x, ref y); //false
  </code></pre>