04 2022 档案
C#中事件的使用
摘要:定义一个事件类型 public class PropertyValueChangedEventArgs : EventArgs { private string _propertyName; private object _oldValue; private object _newValue; pu 阅读全文
posted @ 2022-04-29 10:16 风浪 阅读(142) 评论(0) 推荐(0)
C# WaitHandle.WaitAll 的实例
摘要:今天看到一个net2.0的线程等待与通知的代码, 感觉有些意思, 记录一下 private AutoResetEvent[] _endReport; private void button1_Click(object sender, EventArgs e) { Thread thread = ne 阅读全文
posted @ 2022-04-25 14:15 风浪 阅读(212) 评论(0) 推荐(0)