void func() { Type t = Type.INVALID; switch(t) { case typeof(string): case typeof(Object): break; default: break; } }