a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
30 lines
374 B
C#
30 lines
374 B
C#
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 ();
|
|
}
|
|
}
|
|
|