title: Trying to Compare Instance of Class Directly to a String
body: <p>How can I make a class like this:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public class Foo
  {
      private string m_value;
      public string Value { get { return m_value; } set { m_value = value; } }
      public Foo()
      {
          m_value = "";
      }
  }
  </code></pre>
  
  <p>be directly comparable with a string without needing to access it's <code>.Value</code> property so that I can do:</p>
  
  <pre class="lang-cs prettyprint-override"><code>Foo m_foo = new Foo();
  m_foo = "someString";
  
  if(m_foo == "someString")
  {
      Console.Writeline("It Worked!");
  }
  </code></pre>
  
  <p>I'm not sure if this is even possible.</p>