blob: 577b0155412c3c02c7c62fed2019203e0c070c7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// CS0079: The event `ErrorCS0079.OnFoo' can only appear on the left hand side of `+=' or `-=' operator
// Line: 19
using System;
class ErrorCS0079 {
public delegate void Handler ();
event Handler privateEvent;
public event Handler OnFoo {
add {
privateEvent += value;
}
remove {
privateEvent -= value;
}
}
void Callback() {
if (privateEvent != null)
OnFoo();
}
public static void Main () {
}
}
|