title: Is it possible to override assignment "=" in C#
body: <p>I have a complex object type for which I'm overriding the "base.ToString()" method so that it returns a string property value.</p>
  
  <p>for example:</p>
  
  <pre><code>class foo
  {
   public string StringValue{get;set;}
   public int SomeOtherValue{ get;set;}
   public override ToString()
   {
     return StringValue;
   }
  }
  </code></pre>
  
  <p>So this allows me to use retrieve the value of the StringValue property easily.</p>
  
  <p>Is there a way in which I can override or extend the base functionality so that I can use simple code such as below to set the <code>StringValue</code> property?</p>
  
  <pre><code>foo aFoo = new foo();
  aFoo = "Some string value";
  </code></pre>