title: .NET - NULL object if assigned string length is 0
body: <p>Currently, whenever I pass a string to the db, if that string is empty, then i set that object to NULL by doing the following:</p>
  
  <pre><code>IIf(DescriptionTxt.Text.length &gt; 0, DescriptionTxt.Text, DBNull.Value)
  </code></pre>
  
  <p>I was thinking about writing a function to reduce the length of this code, and make it more consistent.</p>
  
  <p>However, I was wondering, is there already a way of doing this in .NET 3.5?</p>