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

test-677.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 85da219543248b1f7df400e00e5fdebb108523d8 (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
27
28
29
30
31
32
using System;
	
class InvokeWindow
{
	public event D E;
		
	public void Run ()
	{
		E ();
	}
}
	
delegate void D ();

public class Test
{
	public static int Main ()
	{
		InvokeWindow win = new InvokeWindow ();
		win.E += new D (OnDeleteEvent);
		win.Run ();
		return 0;
	}

	static void OnDeleteEvent ()
	{
	}
	
	void OnDeleteEvent (int i)
	{
	}
}