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-capture3.cs
blob
6c77565221670439f8f1837ff9793618b886c3a8
1
//
2
// Simple variable capturing
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
a
=
2
;
13
};
14
b
();
15
Console
.
WriteLine
(
"Back, got "
+
a
);
16
}
17
}