You can try this way :
private string GetFriendlyName(Type type)
{
Dictionary<string, string> alias = new Dictionary<string, string>()
{
{typeof (byte).Name, "byte"},
{typeof (sbyte).Name, "sbyte"},
{typeof (short).Name, "short"},
{typeof (ushort).Name, "ushort"},
{typeof (int).Name, "int"},
{typeof (uint).Name, "uint"},
{typeof (long).Name, "long"},
{typeof (ulong).Name, "ulong"},
{typeof (float).Name, "float"},
{typeof (double).Name, "double"},
{typeof (decimal).Name, "decimal"},
{typeof (object).Name, "object"},
{typeof (bool).Name, "bool"},
{typeof (char).Name, "char"},
{typeof (string).Name, "string"}
};
return alias.ContainsKey(type.Name) ? alias[type.Name] : type.Name;
}
I suggest you to make alias
dictionary static readonly
for performance benefit.