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
2004-12-25 Ben Maurer <bmaurer@ximian.com>
[mono-project.git]
/
mcs
/
tests
/
a-capture4.cs
blob
b3e69ebd28b03b01fb166e79cb2c185e107fd6b6
1
//
2
// Capturing test.
3
//
4
delegate void
S
();
5
using
System
;
6
7
class
X
{
8
static void
Main
()
9
{
10
int
a
=
1
;
11
S b
=
delegate
{
12
float
f
=
1
;
13
Console
.
WriteLine
(
a
);
14
if
(
f
==
2
)
15
return
;
16
};
17
b
();
18
Console
.
WriteLine
(
"Back, got "
+
a
);
19
}
20
}