Give Dictionaries a friendlier notation.

This commit is contained in:
Matthias Mailänder
2016-08-28 17:47:11 +02:00
committed by reaperrr
parent 0a150bcc75
commit 59d88199cf

View File

@@ -197,7 +197,7 @@ namespace OpenRA.Mods.Common
return "Set of {0}".F(t.GetGenericArguments().Select(FriendlyTypeName).ToArray());
if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Dictionary<,>))
return "Dictionary<{0},{1}>".F(t.GetGenericArguments().Select(FriendlyTypeName).ToArray());
return "Mapping of {0} to {1}".F(t.GetGenericArguments().Select(FriendlyTypeName).ToArray());
if (t.IsSubclassOf(typeof(Array)))
return "Multiple {0}".F(FriendlyTypeName(t.GetElementType()));