title: how to set nullable type via reflection code ( c#)?
body: <p>I need to set the properties of a class using reflection.</p>
  
  <p>I have a <code>Dictionary&lt;string,string&gt;</code> with property names and string values.</p>
  
  <p>Inside a reflection loop, I need to convert the string value to the appropriate property type while setting the value for each property. Some of these property types are nullable types.</p>
  
  <ol>
  <li>How can I know from PropertyInfo if the property is a nullable type?</li>
  <li>How can I set a nullable type using reflection?</li>
  </ol>
  
  <p><strong>edit:</strong>
  The first method defined in the comments on this blog seems to do the trick as well:
  <a href="http://weblogs.asp.net/pjohnson/archive/2006/02/07/437631.aspx" rel="noreferrer">http://weblogs.asp.net/pjohnson/archive/2006/02/07/437631.aspx</a></p>