Fix hashset documentation.
This commit is contained in:
committed by
Paul Chote
parent
eba266aecf
commit
58e482c05a
@@ -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<,>))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user