Hi,

How can I retrieve the base type from an nullable type?

For example, I've got a nullable Int64.
GetType would give me this: -
{Name = "Nullable`1" FullName = "System.Nullable`1[[System.Int64, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]"} System.Type {System.RuntimeType}

However I want the type to contain System.Int64, not System.Nullable.

I need this because the type is going into a datatable, and I can't add columns with a nullable type in it.