1 // CS0079: The event `ErrorCS0079.OnFoo' can only appear on the left hand side of `+=' or `-=' operator
7 public delegate void Handler ();
8 event Handler privateEvent
;
9 public event Handler OnFoo
{
11 privateEvent
+= value;
14 privateEvent
-= value;
18 if (privateEvent
!= null)
22 public static void Main () {