title: C# add validation on a setter method
body: <p>I have a a couple of variables that i define in C# by:</p>
  
  <pre><code>public String firstName { get; set; }
  public String lastName { get; set; }
  public String organization { get; set; }
  </code></pre>
  
  <p>What i want is to add validation to these methods when you try to set a value. Lets say your going to set a value for firstName, the i should pass thrue a regexp to actuelly be set, otherwise an exception should be thrown. Is this possible to build with this "short syntax" or should I go for standard (like in JAVA) getters and setters and in there validate the data?</p>