int something = 2; switch(something) { case 1: Console.WriteLine(1); break; case 2: Console.WriteLine(2); break; }