Changes

Jump to: navigation, search

The C Sharp switch Statement

460 bytes added, 18:32, 16 January 2008
Using the switch Statement
<pre>
using System;
using System.Text;
 
class Hello
{
static void Main()
{
string carModel;
string carManufacturer;
 
System.Console.Write ("Please Enter Your Vehicle Model: ");
 
carModel = System.Console.ReadLine();
 
switch (carModel)
{
case "
 
System.Console.Write("Manufacturer is " + carManufacturer);
}
}
</pre>

Navigation menu