Browse Source

Added helper property to check if enum entries are flags.

pull/1/head
triton 13 years ago
parent
commit
bc75f77261
  1. 5
      src/Bridge/Enumeration.cs

5
src/Bridge/Enumeration.cs

@ -48,6 +48,11 @@ namespace Cxxi
return this; return this;
} }
public bool IsFlags
{
get { return Modifiers.HasFlag(EnumModifiers.Flags); }
}
public Type Type { get; set; } public Type Type { get; set; }
public BuiltinType BuiltinType { get; set; } public BuiltinType BuiltinType { get; set; }
public EnumModifiers Modifiers { get; set; } public EnumModifiers Modifiers { get; set; }

Loading…
Cancel
Save