Browse Source

Merge pull request #78 from ddobrev/master

Added the event to its block to maintain the connection between them
pull/80/head
João Matos 12 years ago
parent
commit
0f3a8cd392
  1. 2
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

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

@ -1377,7 +1377,7 @@ namespace CppSharp.Generators.CSharp
private void GenerateEvent(Event @event) private void GenerateEvent(Event @event)
{ {
PushBlock(CSharpBlockKind.Event); PushBlock(CSharpBlockKind.Event, @event);
TypePrinter.PushContext(CSharpTypePrinterContextKind.Native); TypePrinter.PushContext(CSharpTypePrinterContextKind.Native);
var args = TypePrinter.VisitParameters(@event.Parameters, hasNames: true); var args = TypePrinter.VisitParameters(@event.Parameters, hasNames: true);
TypePrinter.PopContext(); TypePrinter.PopContext();

Loading…
Cancel
Save