repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[tuner] handle the case with multiple "preserve" attributes
[mono-project.git]
/
mcs
/
tests
/
test-770.cs
blob
85b2ad50015e1a359c7b9e602a78189255795717
1
using
System
;
2
3
public class
MyClass
4
{
5
public class
A
6
{
7
public event
EventHandler MouseClick
;
8
}
9
10
public class
B
:
A
11
{
12
public new event
EventHandler MouseClick
;
13
}
14
15
public class
C
:
B
16
{
17
public new void
MouseClick
()
18
{
19
Console
.
WriteLine
(
"This should be printed"
);
20
}
21
}
22
23
static public void
Main
()
24
{
25
C myclass
=
new
C
();
26
myclass
.
MouseClick
();
27
}
28
}
29