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

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

namespace TestBug
{
	public class BugClass<T>
	{
		public event EventHandler Evt { add { } remove { } }

		public void Bug ()
		{
			Evt += Handler;
		}

		public static void Handler (object sender, EventArgs e)
		{
		}
	}

	class MainClass
	{
		public static void Main ()
		{
			BugClass<int> bc = new BugClass<int> ();
			bc.Evt += BugClass<int>.Handler;
		}
	}
}