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
* TaskLoggingHelper.cs (LogErrorFromException): Add missing overload.
[mcs.git]
/
tests
/
test-anon-18.cs
blob
678c0b5f50633aa9274e3dc0b35b55088bb76a6b
1
using
System
;
2
3
delegate void
A
();
4
5
class
DelegateTest
{
6
static void
Main
(
string
[]
argv
)
7
{
8
Console
.
WriteLine
(
"Test"
);
9
10
foreach
(
string
arg
in
argv
) {
11
Console
.
WriteLine
(
"OUT:
{0}
"
,
arg
);
12
A a
=
delegate
{
13
Console
.
WriteLine
(
"arg:
{0}
"
,
arg
);
14
};
15
a
();
16
}
17
}
18
}
19