title: C# Reflection: How to get the type of a Nullable<int>?
body: <p>What I want to do is something like this:</p>
  
  <pre><code>switch( myObject.GetType().GetProperty( "id") )
  {
      case ??: 
          // when Nullable&lt;Int32&gt;, do this
      case ??:
          // when string, do this
      case ??:
          // when Nullable&lt;bool&gt;, do this
  </code></pre>
  
  <p>What path under object.GetType() would have the string name of the datatype that I could compare using a case statement?  I need to know the type so I can have one of many Convert.ToInt32( string ) that will set the value of myObject using Reflection.</p>