repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remove NotWorking
[mcs.git]
/
tests
/
gtest-122.cs
blob
2ec8725936fad8e9ca901a937c59c15774edb7d9
1
class
Test
2
{
3
static void
Main
(
string
[]
args
)
4
{
5
A
<
int
>
a
=
new
A
<
int
>(
new
A
<
int
>.
B
(
D
),
3
);
6
a
.
Run
();
7
}
8
public static void
D
(
int
y
)
9
{
10
System
.
Console
.
WriteLine
(
"Hello "
+
3
);
11
}
12
}
13
class
A
<
T
>
14
{
15
public delegate void
B
(
T t
);
16
17
protected
B _b
;
18
protected
T _value
;
19
20
public
A
(
B b
,
T
value
)
21
{
22
_b
=
b
;
23
_value
=
value
;
24
}
25
public void
Run
()
26
{
27
_b
(
_value
);
28
}
29
}
30