测试代码
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);
}
新闻热点
疑难解答