From fcb3b93f559e074395751b8a05f18ae11fc735e7 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Thu, 13 Sep 2018 02:41:53 +0300 Subject: [PATCH] Fixed the generated C# for destructors of abstract classes. Signed-off-by: Dimitar Dobrev --- src/Generator/Generators/CSharp/CSharpSources.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/Generators/CSharp/CSharpSources.cs b/src/Generator/Generators/CSharp/CSharpSources.cs index 739ed0a7..35f3b857 100644 --- a/src/Generator/Generators/CSharp/CSharpSources.cs +++ b/src/Generator/Generators/CSharp/CSharpSources.cs @@ -2032,7 +2032,7 @@ namespace CppSharp.Generators.CSharp var dtor = @class.Destructors.FirstOrDefault(); if (dtor != null && dtor.Access != AccessSpecifier.Private && - @class.HasNonTrivialDestructor && !dtor.IsPure) + @class.HasNonTrivialDestructor && !@class.IsAbstract) { NativeLibrary library; if (!Options.CheckSymbols ||