CSharp設計模式讀書筆記(17):迭代器模式(學習難度:★★★☆☆,使用頻率:★★★★★)...

迭代器模式(Iterator Pattern):提供一種方法來訪問聚合對象,而不用暴露這個對象的內部表示,其別名爲遊標(Cursor)。 模式角色與結構: 實現代碼: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CSharp.DesignPatter
相關文章
相關標籤/搜索