Skip to content

Commit 9aa8ad3

Browse files
committed
Remove the internal C# functions for virtual destructors
Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent b94a89b commit 9aa8ad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator/Generators/CSharp/CSharpSources.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ private void GatherClassInternalFunctions(Class @class, bool includeCtors,
624624
}
625625

626626
if (@class.HasNonTrivialDestructor && !@class.IsStatic)
627-
foreach (var dtor in @class.Destructors)
627+
foreach (var dtor in @class.Destructors.Where(d => !d.IsVirtual))
628628
tryAddOverload(dtor);
629629

630630
foreach (var method in @class.Methods)

0 commit comments

Comments
 (0)