static void ExecuteSwitch()
{
Console.WriteLine("1 [C#], 2 [VB]");
string langChoice = Console.ReadLine();
int n = int.Parse(langChoice);
switch (n)
case 1:
C O R E C # P R O G R A M M I N G C O N S T R U C T S, PA RT I
8849CH03.qxd 9/24/07 11:07 AM Page 103
break;
Console.WriteLine("VB .NET: OOP, multithreading, and more!");
default:
}