1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
class A { public static implicit operator int (A a) { return 1; } public static implicit operator bool (A a) { return false; } } class C { public static void Main () { switch (new A ()) { default: break; } } }