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
update readme (#21797)
[mono-project.git]
/
mcs
/
tests
/
test-async-47.cs
blob
4b6af22d5fa2f4164caf74cc8aa45a736f565767
1
using
System
;
2
3
class
C
4
{
5
public static void
Main
()
6
{
7
new
C
().
Test
();
8
}
9
10
void
Test
()
11
{
12
var
v
=
new
View
();
13
v
.
Click
+=
async
(
o
,
e
) => {
14
var
b
=
new
Builder
();
15
b
.
SetButton
(() => {
16
Console
.
WriteLine
(
this
);
17
});
18
};
19
v
.
Run
();
20
}
21
}
22
23
class
View
24
{
25
public event
EventHandler Click
;
26
27
public void
Run
()
28
{
29
Click
(
null
,
null
);
30
}
31
}
32
33
class
Builder
34
{
35
public void
SetButton
(
Action h
)
36
{
37
h
();
38
}
39
}