From 6d3aca4087398c9588da0c3e77f6001f640df44a Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Mon, 4 Nov 2019 17:46:32 +0100 Subject: [PATCH] Output: Parameter attributes on constructors and methods --- Il2CppInspector/Reflection/MethodBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Il2CppInspector/Reflection/MethodBase.cs b/Il2CppInspector/Reflection/MethodBase.cs index 3eb00b6..0a76652 100644 --- a/Il2CppInspector/Reflection/MethodBase.cs +++ b/Il2CppInspector/Reflection/MethodBase.cs @@ -160,7 +160,7 @@ namespace Il2CppInspector.Reflection // Get C# syntax-friendly list of parameters // TODO: Parameter custom attributes public string GetParametersString() => - string.Join(", ", DeclaredParameters.Select(p => $"{p.GetModifierString()}{p.ParameterType.CSharpName} {p.Name}")); + string.Join(", ", DeclaredParameters.Select(p => $"{p.CustomAttributes.ToString(inline: true)}{p.GetModifierString()}{p.ParameterType.CSharpName} {p.Name}")); public string GetTypeParametersString() => GenericTypeParameters == null? "" : "<" + string.Join(", ", GenericTypeParameters.Select(p => p.CSharpName)) + ">";