static void Main(string[] args) { MyColor c = MyColor.Blue; Console.WriteLine(c.HasFlag(MyColor.Red)); }