Remove debugging code from generated code
[mono-project.git] / mcs / errors / cs0079.cs
blobe94511e8937d272f51f2bb0ac57b193bd74a7504
1 // cs0079.cs: The event `ErrorCS0079.OnFoo' can only appear on the left hand side of += or -=
2 // Line: 19
4 using System;
6 class ErrorCS0079 {
7 public delegate void Handler ();
8 event Handler privateEvent;
9 public event Handler OnFoo {
10 add {
11 privateEvent += value;
13 remove {
14 privateEvent -= value;
17 void Callback() {
18 if (privateEvent != null)
19 OnFoo();
22 public static void Main () {