Browse Source

Remove the internal C# functions for virtual destructors

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/1261/head
Dimitar Dobrev 6 years ago
parent
commit
9aa8ad3f55
  1. 2
      src/Generator/Generators/CSharp/CSharpSources.cs

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

@ -624,7 +624,7 @@ namespace CppSharp.Generators.CSharp @@ -624,7 +624,7 @@ namespace CppSharp.Generators.CSharp
}
if (@class.HasNonTrivialDestructor && !@class.IsStatic)
foreach (var dtor in @class.Destructors)
foreach (var dtor in @class.Destructors.Where(d => !d.IsVirtual))
tryAddOverload(dtor);
foreach (var method in @class.Methods)

Loading…
Cancel
Save