title: c# override ToString() method in variable
body: <p>Using this example code:</p>
  
  <pre><code>public class Product
  {
      private Boolean _active;
  
      public Boolean active
      {
          get
          {
              return _active;
          }
          set
          {
              _active = value;
          }
      }
  }
  
  Product p = new Product();
  p.active = true;
  </code></pre>
  
  <p>How can I override the <code>ToString()</code> method so I can use this:</p>
  
  <pre><code>MessageBox.Show(p.active.ToString());
  </code></pre>