When generating C# code using CodeDom / CSharpCodeProvider, is it possible to force the output to use C# aliases instead of CLR types where possible?
I am currently parsing the resulting C# code and replacing CLR types with their aliases, but I would like to find out if it is possible to do this during code generation.
Microsoft.CSharp.CSharpCodeProvider by default generates code with C# aliases.
Example:
Will generate:
As you can see, although I used typeof(Int32), it converted it to "int". (Int64 it converts to "long" etc.)