private static string TranslateTypeName(string typeName)
{
switch (typeName)
{
case "Object": return "object";
case "Void": return "void";
case "Byte": return "byte";
case "SByte": return "sbyte";
case "Int16": return "short";
case "UInt16": return "ushort";
case "Int32": return "int";
case "UInt32": return "uint";
case "Int64": return "long";
case "UInt64": return "ulong";
case "Single": return "float";
case "Double": return "double";
case "Decimal": return "decimal";
case "String": return "string";
case "Char": return "char";
case "Boolean": return "bool";
default:
return null;
}
}