异步委托
#region
异步委托
//这么简单的事相信不用注释也能看懂吧
static
void
Test11111()
{
Console.WriteLine(
"测试开始"
);
Console.WriteLine(
"测试运行"
);
Thread.Sleep(3000);
Console.WriteLine(
"测试结束"
);
}
delegate
void
TestDelegate
();
static
void
Main(
string
[] args)
{
TestDelegate testDelegate = Test11111;
testDelegate();
Console.WriteLine(
"Main结束"
);
}
#endregion