diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 86b8d4e4..d76e3a8a 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -1702,7 +1702,7 @@ namespace CppSharp.Generators.CSharp public void GenerateMethod(Method method, Class @class) { - PushBlock(CSharpBlockKind.Method); + PushBlock(CSharpBlockKind.Method, method); GenerateDeclarationCommon(method); if (method.ExplicitInterfaceImpl == null)