摘要:
// 事件访问器的定义int eventCount=0; public event EventHandler NumberChanged { add { eventCount++; numberChanged = value; } remove { eventCount--; numberChanged -= value; } }或取委托数组public event EventHandler NumberChanged;//某个方法内Delegate[] delegates = NumberChanged.GetInvocationList(); 阅读全文