in TPM Parser/Tpm2Lib/Globs.cs [1004:1026]
public static string ToCSharpStyle (string typeName)
{
if (typeName.EndsWith("[]"))
{
typeName = typeName.Substring(0, typeName.Length - 2);
}
if (typeName == "bool") { return "bool"; }
if (typeName == "Byte") { return "byte"; }
if (typeName == "SByte") { return "sbyte"; }
if (typeName == "Char") { return "char"; }
if (typeName == "Decimal") { return "decimal"; }
if (typeName == "Double") { return "double"; }
if (typeName == "Single") { return "float"; }
if (typeName == "Int32") { return "int"; }
if (typeName == "UInt32") { return "uint"; }
if (typeName == "Int64") { return "long"; }
if (typeName == "UInt64") { return "ulong"; }
if (typeName == "Object") { return "object"; }
if (typeName == "Int16") { return "short"; }
if (typeName == "UInt16") { return "ushort"; }
if (typeName == "String") { return "string"; }
return typeName;
}