随笔 - 163
文章 - 2
评论 - 370
阅读 -
46万
04 2022 档案
C#中事件的使用
摘要:定义一个事件类型 public class PropertyValueChangedEventArgs : EventArgs { private string _propertyName; private object _oldValue; private object _newValue; pu
阅读全文
C# WaitHandle.WaitAll 的实例
摘要:今天看到一个net2.0的线程等待与通知的代码, 感觉有些意思, 记录一下 private AutoResetEvent[] _endReport; private void button1_Click(object sender, EventArgs e) { Thread thread = ne
阅读全文