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

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

delegate void Y ();

class X {
	public event Y y;
	public static void Main (string [] args)
	{
		X x = new X ();
		x.Foo ();
	}

	int a;
	
	void Foo ()
	{
		int x = 1;
		y += delegate {
			Console.WriteLine (x);
			Console.WriteLine (this.GetType ());
		};
		y ();
		
	}
}