1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// CS0619: `C.explicit operator byte(C)' is obsolete: `gg' // Line: 17 using System; class C { [Obsolete ("gg", true)] public static explicit operator byte (C x) { return 1; } static void Main () { C x = null; var y = (int) x; } }