From 504222f03f7126b833c9d20c30acc08ef0b851b2 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Sat, 5 Oct 2013 20:03:21 +0300 Subject: [PATCH] Added the event to its block to maintain the connection between them. Signed-off-by: Dimitar Dobrev --- src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index a4033148..a69d7d42 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -1377,7 +1377,7 @@ namespace CppSharp.Generators.CSharp private void GenerateEvent(Event @event) { - PushBlock(CSharpBlockKind.Event); + PushBlock(CSharpBlockKind.Event, @event); TypePrinter.PushContext(CSharpTypePrinterContextKind.Native); var args = TypePrinter.VisitParameters(@event.Parameters, hasNames: true); TypePrinter.PopContext();