CSharp設計模式讀書筆記(18):中介者模式(學習難度:★★★☆☆,使用頻率:★★☆☆☆)...

中介者模式(Mediator Pattern):用一箇中介對象(中介者)來封裝一系列的對象交互,中介者使各對象不需要顯式地相互引用,從而使其耦合鬆散,而且可以獨立地改變它們之間的交互,中介者模式又稱爲調停者模式。 模式角色與結構: 示例代碼: using System; using System.Collections.Generic; using System.Linq; using Syste
相關文章
相關標籤/搜索