a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
26 lines
288 B
C#
26 lines
288 B
C#
using System;
|
|
|
|
delegate void Y ();
|
|
|
|
class X {
|
|
public event Y y;
|
|
public static void Main (string [] args)
|
|
{
|
|
X x = new X ();
|
|
x.Foo ();
|
|
}
|
|
|
|
int a;
|
|
|
|
void Foo ()
|
|
{
|
|
int x = 1;
|
|
y += delegate {
|
|
Console.WriteLine (x);
|
|
Console.WriteLine (this.GetType ());
|
|
};
|
|
y ();
|
|
|
|
}
|
|
}
|