title: Set property Nullable<> by reflection
body: <p>I try to set a Nullable&lt;> property dynamicly.</p>
  
  <p>I Get my property ex :</p>
  
  <pre><code>PropertyInfo property = class.GetProperty("PropertyName"); // My property is Nullable&lt;&gt; at this time So the type could be a string or int
  </code></pre>
  
  <p>I want to set my property by reflection like </p>
  
  <pre><code>property.SetValue(class,"1256",null);
  </code></pre>
  
  <p>It's not working when my property is a Nullable&lt;> Generic. So i try to find a way to set my property.</p>
  
  <p>To know the type of my nullable&lt;> property i execute </p>
  
  <pre><code>Nullable.GetUnderlyingType(property.PropertyType)
  </code></pre>
  
  <p>Any idea ?</p>
  
  <ul>
  <li><p>I Try to create an instance of my Nullable&lt;> property with</p>
  
  <p>var nullVar = Activator.CreateInstance(typeof(Nullable&lt;>).MakeGenericType(new Type[] { Nullable.GetUnderlyingType(property.PropertyType) }));</p></li>
  </ul>
  
  <p>But nullVar is always Null</p>