摘要:
namespaceMyCollections{usingSystem.Collections;//-----------------------------------------------------------------------------//该委托定义相当于观察者模式中的Notify()函数,//用来通知观察者关于subject的变化//通知观察者,观察者会自动执行观察者内的Update(),Update()方法会暴露给subjects.//Adelegatetypeforhookingupchangenotifications.publicdelegatevoidChanged 阅读全文