From ea96abb94f56bf350ae1ed95732f2499ecdc350d Mon Sep 17 00:00:00 2001 From: triton Date: Thu, 25 Jul 2013 01:04:29 +0100 Subject: [PATCH] Added IgnoreClassField helper. --- src/Generator/Library.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Generator/Library.cs b/src/Generator/Library.cs index 86e6a72b..b64e02ac 100644 --- a/src/Generator/Library.cs +++ b/src/Generator/Library.cs @@ -285,6 +285,15 @@ namespace CppSharp } } + public static void IgnoreClassField(this Library library, string name, string field) + { + foreach (var @class in library.FindClass(name)) + { + foreach (var classField in @class.Fields.FindAll(f => f.Name == field)) + classField.ExplicityIgnored = true; + } + } + #endregion #region Module Helpers