I have the following scenario where I get a string that looks as follows
"System.DateTime?"
or
"int?"
What I would like to be able to do, is retrieve the System.Type for that string which would look like:
{Name = "Nullable
1" FullName = "System.Nullable
1[[System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]"}
Now I know how to retrieve the type from a string I can just say Type.GetType("System.DateTime")
when dealing with non nullable type or typeof(DateTime?)
when I know it's going to be DateTime nullable, but in this instance I'm unaware of the what nullable type might come through and will only receive it as string.