Possible Duplicate:
Nullable type is not a nullable type?
How to check if an object is nullable?
See the codes below. Is there a way to get something like System.Nullable`1[System.Int32] by passing n as the argument?
static void Test()
{
List<int> l = new List<int>();
Nullable<int> n = new Nullable<int>( 1 );
Console.WriteLine( l.GetType() ); // will output System.Collections.Generic.List`1[System.Int32]
Console.WriteLine( n.GetType() ); // will output System.Int32. Why won't output something like System.Nullable`1[System.Int32] ?
}