From bc75f77261e4dedf0b202c7c45a2e54c8058f413 Mon Sep 17 00:00:00 2001 From: triton Date: Mon, 4 Feb 2013 22:53:51 +0000 Subject: [PATCH] Added helper property to check if enum entries are flags. --- src/Bridge/Enumeration.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Bridge/Enumeration.cs b/src/Bridge/Enumeration.cs index e0c101d0..4dcf70f2 100644 --- a/src/Bridge/Enumeration.cs +++ b/src/Bridge/Enumeration.cs @@ -48,6 +48,11 @@ namespace Cxxi return this; } + public bool IsFlags + { + get { return Modifiers.HasFlag(EnumModifiers.Flags); } + } + public Type Type { get; set; } public BuiltinType BuiltinType { get; set; } public EnumModifiers Modifiers { get; set; }