Browse Source

Added the event to its block to maintain the connection between them.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/78/head
Dimitar Dobrev 12 years ago
parent
commit
504222f03f
  1. 2
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

2
src/Generator/Generators/CSharp/CSharpTextTemplate.cs

@ -1377,7 +1377,7 @@ namespace CppSharp.Generators.CSharp @@ -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();

Loading…
Cancel
Save