static void PrintAllMissesDay(EnumFlag e) { foreach (var v in Enum.GetNames(typeof(EnumFlag))) { if (Enum.TryParse <EnumFlag>(v, out EnumFlag result) != e.HasFlag(result)) { Console.WriteLine(result); } } }
static bool ThisDayExist(EnumFlag myEnum, EnumFlag day) { if (myEnum.HasFlag(day)) { return(true); } else { return(false); } }