[.Net/Reflection] Getting the .Net corresponding type of a C# type
- by Serious
Hello,
is there a function that, given a C# type's string representation, returns the corresponding .Net type or .Net type's string representation; or any way to achieve this.
For example :
"bool" - System.Boolean or "System.Boolean"
"int" - System.Int32 or "System.Int32"
...
Thanks.
Edit : really sorry, it's not a "type to type" mapping that I wish but either a "string to string" mapping or a "string to type" mapping.