代码简单,直接上代码了
for (var i = 0; i < actions.Length; i++)
{
actions[i] = () =>
{
Console.WriteLine(i);
};
}
foreach (var item in actions)
{
item();
}
}
新闻热点
疑难解答