diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 06426324..7af14831 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -589,7 +589,7 @@ namespace CppSharp.Generators.CSharp private void GenerateClassField(Class @class, bool isInternal, Field field) { - if (ASTUtils.CheckIgnoreField(@class, field)) return; + if (ASTUtils.CheckIgnoreField(field)) return; PushBlock(CSharpBlockKind.Field);