Browse Source

Fixed a failing test about the native-to-managed map.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/471/head
Dimitar Dobrev 10 years ago
parent
commit
b972aeb8b3
  1. 4
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

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

@ -1399,7 +1399,7 @@ namespace CppSharp.Generators.CSharp @@ -1399,7 +1399,7 @@ namespace CppSharp.Generators.CSharp
{
if (method.IsDestructor)
{
WriteLine("target.Dispose();");
WriteLine("target.DestroyNativeInstance();");
return;
}
@ -1759,7 +1759,7 @@ namespace CppSharp.Generators.CSharp @@ -1759,7 +1759,7 @@ namespace CppSharp.Generators.CSharp
WriteCloseBraceIndent();
NewLine();
WriteLine("public void {0}()", destroyNativeInstance);
WriteLine("public virtual void {0}()", destroyNativeInstance);
WriteStartBraceIndent();
WriteLine("{0}(true);", destroyNativeInstance);
WriteCloseBraceIndent();

Loading…
Cancel
Save