Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0079-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 50c30845c8e319f51dbeec586366a297a73e5223 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// CS0079: The event `Foo.Event2' can only appear on the left hand side of += or -=
// Line: 11

using System;

public class Foo {
	EventHandler event2;

	public Foo ()
	{
		Event2 = null;
	}

	public event EventHandler Event2 {
		add { event2 += value; }
		remove {event2 -= value; }
	}
}