projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2007-10-17 Jonathan Pobst <monkey@jpobst.com>
[mono.git]
/
mcs
/
tests
/
test-anon-03.cs
1
//
2
// Simple variable capturing
3
//
4
using System;
5
6
delegate void S ();
7
8
class X {
9
static void Main ()
10
{
11
int a = 1;
12
S b = delegate {
13
a = 2;
14
};
15
b ();
16
Console.WriteLine ("Back, got " + a);
17
}
18
}