摘要: SynchronizationContext线程上下文说明SynchronizationContext在通讯中充当传输者的角色,实现功能就是一个线程和另外一个线程的通讯 那么SynchronizationContext的Send()和Post(): Send() 是简单的在当前线程上去调用委托来实现 阅读全文
posted @ 2020-09-11 21:13 rainbow70626 阅读(485) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; //线程类:暂停函数 namespace Program { class Pro 阅读全文
posted @ 2020-09-11 00:32 rainbow70626 阅读(994) 评论(0) 推荐(0) 编辑
摘要: 问题:字段初始值设定项无法引用非静态字段、方法或属性的问题 下面代码出错的原因,在类中定义的字段为什么不能用? public class Test { public Test() { } public int Age=23; public int temp = Age;//ERROR 字段初始值设定 阅读全文
posted @ 2020-09-11 00:21 rainbow70626 阅读(740) 评论(0) 推荐(0) 编辑