Use a better name for HashSet in ExtractTraitDocsCommand.FriendlyTypeName.

This commit is contained in:
RoosterDragon
2015-08-28 19:55:25 +01:00
parent f62bc3c226
commit 637a87c33b

View File

@@ -114,6 +114,9 @@ namespace OpenRA.Mods.Common.UtilityCommands
static string FriendlyTypeName(Type t)
{
if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(HashSet<>))
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());