title: Most efficient way of dealing with DBNull in .NET
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/26809/what-is-the-best-way-to-deal-with-dbnulls">What is the best way to deal with DBNull&#39;s</a>  </p>
  </blockquote>
  
  
  
  <p>What is the most efficient syntax in .NET to set a variable that has a value of DBNull (aka SQL null value being returned)?  I remember reading something that was put into .NET 3.0 for this sort of thing.  Lets assume the variable I'm setting has a type of DateTime.</p>
  
  <p>Common error:<br />
  Conversion from type 'DBNull' to type 'Date' is not valid.</p>