repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #4926 from BrzVlad/fix-tls-v5
[mono-project.git]
/
mcs
/
errors
/
cs0079-2.cs
blob
3116e51d926ccfbcd5de1329a28595bfa881687b
1
// CS0079: The event `Foo.Event2' can only appear on the left hand side of `+=' or `-=' operator
2
// Line: 11
3
4
using
System
;
5
6
public class
Foo
{
7
EventHandler event2
;
8
9
public
Foo
()
10
{
11
Event2
=
null
;
12
}
13
14
public event
EventHandler Event2
{
15
add
{ event2 += value; }
16
remove
{event2 -= value; }
17
}
18
}