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)) + ">";