Fix hashset documentation.

This commit is contained in:
Matthias Mailänder
2021-09-13 15:21:20 +02:00
committed by Paul Chote
parent eba266aecf
commit 58e482c05a

View File

@@ -212,7 +212,7 @@ namespace OpenRA.Mods.Common
public static string FriendlyTypeName(Type t) public static string FriendlyTypeName(Type t)
{ {
if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(HashSet<>)) if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(HashSet<>))
return $"Set of {t.GetGenericArguments().Select(FriendlyTypeName).ToArray()}"; return $"Set of {t.GetGenericArguments().Select(FriendlyTypeName).First()}";
if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Dictionary<,>)) if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Dictionary<,>))
{ {