As in this example:
switch ( myObj.GetType ( ) ) { case typeof(MyObject): Console.WriteLine ( \"MyObject is here\" ); break; }
a switch in C# only works for integrals or strings. myObj.GetType() returns a Type, which is neither an integral or a string.