From e0fcd596933ecbb062ba71f192c97f8e851bf8e6 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Sun, 2 Feb 2020 22:40:52 +0100 Subject: [PATCH] Model: Fix generic method type arguments naming inconsistency with .NET --- Il2CppInspector/Reflection/MethodBase.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Il2CppInspector/Reflection/MethodBase.cs b/Il2CppInspector/Reflection/MethodBase.cs index 4ae5f73..05db6e2 100644 --- a/Il2CppInspector/Reflection/MethodBase.cs +++ b/Il2CppInspector/Reflection/MethodBase.cs @@ -226,9 +226,8 @@ namespace Il2CppInspector.Reflection public string GetTypeParametersString(Scope usingScope) => !GetGenericArguments().Any()? "" : "<" + string.Join(", ", GetGenericArguments().Select(p => p.GetScopedCSharpName(usingScope))) + ">"; - // TODO: The scope output for some System types does not match the real .NET output here public string GetFullTypeParametersString() => !GetGenericArguments().Any()? "" : - "[" + string.Join(",", GetGenericArguments().Select(p => p.FullName ?? p.Name)) + "]"; + "[" + string.Join(",", GetGenericArguments().Select(p => p.Name)) + "]"; public abstract string GetSignatureString();