Switch on Enum (with Flags attribute) without declaring every possible combination?
How about this. Of course the arguments and return types of DoSomething, etc., can be anything you like. class Program { [Flags] public enum CheckType { Form = 1, QueryString = 2, TempData = 4, } private static bool DoSomething(IEnumerable cln) { Console.WriteLine(“DoSomething”); return true; } private static bool DoSomethingElse(IEnumerable cln) { Console.WriteLine(“DoSomethingElse”); return true; … Read more