异步委托
#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
最后
以上就是幸福鞋垫最近收集整理的关于异步委托托的全部内容,更多相关异步委托托内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复