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
2007-05-25 Jonathan Chambers <joncham@gmail.com>
[mcs.git]
/
tests
/
test-344.cs
blob
82c015c0ce9f25772414a1e7839de3a723673186
1
using
System
;
2
3
delegate void
Y
();
4
5
class
X
{
6
public event
Y y
;
7
static void
Main
(
string
[]
args
)
8
{
9
X x
=
new
X
();
10
x
.
Foo
();
11
}
12
13
int
a
;
14
15
void
Foo
()
16
{
17
int
x
=
1
;
18
y
+=
delegate
{
19
Console
.
WriteLine
(
x
);
20
Console
.
WriteLine
(
this
.
GetType
());
21
};
22
y
();
23
24
}
25
}