title: How to create a reference to a value-field
body: <p>Is there a way in C# to create a field which is a reference to another field which is a value type?</p>
  
  <pre><code>class myClass
  {
      bool b1;
  
      public void method1(ref bool b)
      {
          b1 = b;
      }
  }
  </code></pre>
  
  <p>I want b1 to reference the value of b, just as b references the value of the original argument, so that changes to b1 will affect the original argument.</p>
  
  <p>EDIT:</p>
  
  <p>What I’m trying to achieve is a myCheckBox class which automatically updates a field. See: <a href="https://stackoverflow.com/questions/7923014/how-do-i-change-a-value-argument-from-within-an-event-handler">How do I change a value argument from within an event handler?</a> </p>