1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// CS0073: An add or remove accessor must have a body // Line: 9 using System; class ErrorCS0073 { delegate void Handler (); event Handler OnFoo { add; remove { OnFoo -= value; } } public static void Main () { } }