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

test-264.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b4f5031d7868855a949c5268399f5016615b946b (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
using System;

public class Proef
{
	private EventHandler _OnDoSomething = null;

	public event EventHandler OnDoSomething
	{
		add
		{
			_OnDoSomething += value;
		}
		remove
		{
			_OnDoSomething -= value;
		}
	}

	static void Temp(object s, EventArgs e)
	{
	}

	public static void Main()
	{
		Proef temp = new Proef();
		temp.OnDoSomething += new EventHandler(Temp);
	}
}