We can obtain the symbol for special types using the following method:
INamedTypeSymbol stringType = compilation.GetSpecialType(SpecialType.System_String);
which maybe able to remove the use of ToClrTypeName for special types to get primitive type names.
We can obtain the symbol for special types using the following method:
which maybe able to remove the use of
ToClrTypeNamefor special types to get primitive type names.