namespace 委托Delegate
{
class Program
{
private static int newTask(int ms)
{
Console.WriteLine("任务开始");
Thread.Sleep(ms);//这里模拟一个耗时操作
Random random = new Random();
int n = random.Next
C#委托实现异步以及回调函数
最新推荐文章于 2024-06-21 15:10:21 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)