a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
33 lines
354 B
C#
33 lines
354 B
C#
using System;
|
|
|
|
public delegate void Foo ();
|
|
|
|
class Test
|
|
{
|
|
public Test (int a)
|
|
{
|
|
Foo foo = delegate {
|
|
Console.WriteLine (a);
|
|
};
|
|
foo ();
|
|
}
|
|
|
|
static Test ()
|
|
{
|
|
int a = 5;
|
|
Foo foo = delegate {
|
|
Console.WriteLine (a);
|
|
};
|
|
foo ();
|
|
}
|
|
}
|
|
|
|
class X
|
|
{
|
|
public static void Main ()
|
|
{
|
|
Test test = new Test (9);
|
|
Console.WriteLine (test);
|
|
}
|
|
}
|