diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 3e4383e5..5a8f2924 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -1719,7 +1719,8 @@ namespace CppSharp.Generators.CSharp public void GenerateInternalFunction(Function function) { - if(function.Ignore) return; + if (!function.IsProcessed || function.ExplicityIgnored) + return; GenerateDeclarationCommon(function); WriteLine("[SuppressUnmanagedCodeSecurity]");