From f3e9c27ae71c74c4006f5ab7d4fce274058b2bf6 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Sat, 2 Nov 2019 17:23:04 +0100 Subject: [PATCH] Model: Use square brackets for generic type parameters in FullName --- Il2CppInspector/Reflection/TypeInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Il2CppInspector/Reflection/TypeInfo.cs b/Il2CppInspector/Reflection/TypeInfo.cs index 0a45ce5..d9538e9 100644 --- a/Il2CppInspector/Reflection/TypeInfo.cs +++ b/Il2CppInspector/Reflection/TypeInfo.cs @@ -97,8 +97,8 @@ namespace Il2CppInspector.Reflection { + (Namespace.Length > 0? "." : "") + (DeclaringType != null? DeclaringType.Name + "." : "") + base.Name - + (GenericTypeParameters != null ? "<" + string.Join(", ", GenericTypeParameters.Select(x => x.Name)) + ">" : "") - + (GenericTypeArguments != null ? "<" + string.Join(", ", GenericTypeArguments.Select(x => x.Name)) + ">" : "") + + (GenericTypeParameters != null ? "[" + string.Join(", ", GenericTypeParameters.Select(x => x.Name)) + "]" : "") + + (GenericTypeArguments != null ? "[" + string.Join(", ", GenericTypeArguments.Select(x => x.Name)) + "]" : "") + (IsArray? "[]" : ""); // TODO: Alot of other generics stuff