typeof(int).Name
Will return System.Int32 does anyone know of a way to return "int"
There aren't many types that are C# keywords (int, double, string) ... so perhaps you can write your own mapping function, from the System type name to the corresonding C# keyword.
Yeah, you could write a mapping function. That is just an alias anyway.
Here is a list:
http://msdn.microsoft.com/en-us/library/86792hfa(VS.71).aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With