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

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

public class MyClass
{
	public class A
	{
		public event EventHandler MouseClick;
	}

	public class B : A
	{
		public new event EventHandler MouseClick;
	}

	public class C : B
	{
		public new void MouseClick ()
		{
			Console.WriteLine ("This should be printed");
		}
	}

	static public void Main ()
	{
		C myclass = new C ();
		myclass.MouseClick ();
	}
}