typeof(DateTime?).Name == Nullable`1

Viewed 11053

Using Reflection in .Net typeof(DateTime?).Name returns "Nullable`1".

Is there any way to return the actual type as a string. (in this case "DateTime" or "System.DateTime")

I understand that DateTime? is Nullable<DateTime>. That's besides the point, I am just looking for the type of the nullable type.

3 Answers
Related