title: C# limit length of a string
body: <p>I have the following class:</p>
  
  <pre><code>public class VendorClass {         
      public int VendorID { get; set; }
      public string VendorName { get; set; }
  }
  </code></pre>
  
  <p>The fields above match fields in the database table.
  In the case of say <code>VendorName</code>, how do I give it a field width ?</p>
  
  <p><code>VendorName</code> maps to a field in the database which is <code>varchar(15)</code></p>