I have following code.
string name = GetClassName(); switch (name) { case "Class1": new Generic().DoSomething(); brea