projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Allow passing null to JsonArray.Add()
[mono.git]
/
mcs
/
tests
/
test-async-47.cs
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
}