---------- Sample 1: integer and multiple cases int caseSwitch = 1; switch (caseSwitch) { case 1: Console.WriteLine("Case 1"); break; case 2: Console.WriteLine("Case 2"); break; default: Console.WriteLine("Default case"); break; } switch (type) { case LogType.Info: case LogType.Error: Console.WriteLine(msg); break; case LogType.Client: case LogType.Server: break; } ---------- Sample 2: string switch(s) { case "1": Console.WriteLine("Case 1"); break; case "2": Console.WriteLine("Case 2"); break; default: Console.WriteLine("Default case"); break; } ---------- Sample 3: // statements_switch.cs using System; class SwitchTest { static void Main() { Console.WriteLine("Coffee sizes: 1=Small 2=Medium 3=Large"); Console.Write("Please enter your selection: "); string s = Console.ReadLine(); int n = int.Parse(s); int cost = 0; switch(n) { case 1: cost += 25; break; case 2: cost += 25; goto case 1; case 3: cost += 50; goto case 1; default: Console.WriteLine("Invalid selection. Please select 1, 2, or 3."); break; } if (cost != 0) { Console.WriteLine("Please insert {0} cents.", cost); } Console.WriteLine("Thank you for your business."); } } Input: 2 Output Coffee sizes: 1=Small 2=Medium 3=Large Please enter your selection: 2 Please insert 50 cents. Thank you for your business. ---------- Sample 4: // statements_switch2.cs using System; class SwitchTest { static void Main() { int n = 2; switch(n) { case 1: case 2: case 3: Console.WriteLine("It's 1, 2, or 3."); break; default: Console.WriteLine("Not sure what it is."); break; } } } Output: It's 1, 2, or 3.