Is it possible to define an alias (s) of an object type through reflection? In the following example, myObject is of type System.Int32 - for example,
Type t = myObject.GetType();
the so-called will be int32 . However, I would like to identify possible aliases, if any, of the objects in question, so that I can resolve an int type name in addition to Int32
I'm not going to spend a huge amount of time on this. If there is no extremely simple inline solution, I will simply match the values ββmyself. =
source
share