时间:2021-01-21 10:56:01 | 栏目:.NET代码 | 点击:次
测试代码
namespace CSharpStudy
{
class Program
{
static void Main(string[] args)
{
int i = 0;
Action action1 = () =>
{
System.Console.WriteLine(i);
};
i++;
Action action2 = () =>
{
System.Console.WriteLine(i);
};
i++;
action1();
action2();
}
}
}
public void <Main>b__1()
{
Console.WriteLine(this.i);
}