switch(stringValue) { case "Value 1": DoSomething(); break; case "Value 2": DoSomething(); break; case "Value 3"; DoSomething(); break; default: DoSomething(); break; }