From ac18de55c59741ca50fb119ec47d5c8a109e5a96 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Mon, 4 Nov 2019 17:52:21 +0100 Subject: [PATCH] Output: Show variable length argument parameters ("params") --- Il2CppInspector/Reflection/MethodBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Il2CppInspector/Reflection/MethodBase.cs b/Il2CppInspector/Reflection/MethodBase.cs index 0a76652..4a00a3a 100644 --- a/Il2CppInspector/Reflection/MethodBase.cs +++ b/Il2CppInspector/Reflection/MethodBase.cs @@ -158,9 +158,9 @@ namespace Il2CppInspector.Reflection } // Get C# syntax-friendly list of parameters - // TODO: Parameter custom attributes public string GetParametersString() => - string.Join(", ", DeclaredParameters.Select(p => $"{p.CustomAttributes.ToString(inline: true)}{p.GetModifierString()}{p.ParameterType.CSharpName} {p.Name}")); + string.Join(", ", DeclaredParameters.Select(p => $"{p.CustomAttributes.ToString(inline: true).Replace("[ParamArray]", "params")}" + + $"{p.GetModifierString()}{p.ParameterType.CSharpName} {p.Name}")); public string GetTypeParametersString() => GenericTypeParameters == null? "" : "<" + string.Join(", ", GenericTypeParameters.Select(p => p.CSharpName)) + ">";