J
Joe Bloggs
Hi,
I would like to programatically resolve aliases to the actual type,
eg. int to System.Int32.
Essentially, I would like to do this:
Type t = Type.GetType(ResolveAlias("int"));
if (t == typeof(System.Int32))
:
else if (t == typeof(System.Int64)
:
else if (t == typeof(System.Int16))
:
where ResolveAlias("int") will return the string "System.Int32"
I would like to programatically resolve aliases to the actual type,
eg. int to System.Int32.
Essentially, I would like to do this:
Type t = Type.GetType(ResolveAlias("int"));
if (t == typeof(System.Int32))
:
else if (t == typeof(System.Int64)
:
else if (t == typeof(System.Int16))
:
where ResolveAlias("int") will return the string "System.Int32"