a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
38 lines
357 B
C#
38 lines
357 B
C#
using System;
|
|
|
|
class C
|
|
{
|
|
public static void Main ()
|
|
{
|
|
}
|
|
|
|
void Test_1()
|
|
{
|
|
Action a =
|
|
() =>
|
|
Console.WriteLine ();
|
|
}
|
|
|
|
void Test_2()
|
|
{
|
|
Action a =
|
|
() =>
|
|
{
|
|
Console.WriteLine ();
|
|
};
|
|
}
|
|
|
|
void Test_3()
|
|
{
|
|
Action a = delegate
|
|
{
|
|
Console.WriteLine ();
|
|
};
|
|
}
|
|
|
|
void Test_Capturing_1(int arg)
|
|
{
|
|
Func<int> a =
|
|
() => arg;
|
|
}
|
|
} |