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

cs0066.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e7e6f5e3479676719ef8a2d45c57aedbc3be7623 (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
// cs0066.cs : 'Button.Click' : event must be of a delegate type 
// Line : 10

using System;

public delegate void EventHandler (object sender, EventArgs e);

public class Button {

	public event Blah Click;

	public void Reset ()
	{
		Click = null;
	}
}

public class Blah {

	public static void Main ()
	{
		Blah b = new Blah ();
	}
	
}