Browse Source

Added CheckIgnoreProperty to AST/Utils.cs. Changed CheckIgnoreField to handle value class fields declared in linked assemblies.

pull/228/merge
marcos henrich 12 years ago committed by triton
parent
commit
0416a35e8d
  1. 16
      src/Generator/AST/Utils.cs

16
src/Generator/AST/Utils.cs

@ -65,7 +65,21 @@ namespace CppSharp.AST @@ -65,7 +65,21 @@ namespace CppSharp.AST
if (field.Access == AccessSpecifier.Private)
return true;
return !field.IsGenerated;
if (field.Class.IsValueType && field.IsDeclared)
return false;
return !field.IsGenerated;
}
public static bool CheckIgnoreProperty(Property prop)
{
if (prop.Access == AccessSpecifier.Private)
return true;
if (prop.Field != null && prop.Field.Class.IsValueType && prop.IsDeclared)
return false;
return !prop.IsGenerated;
}
}

Loading…
Cancel
Save