設計模式(C#) - 中介者模式(Mediator Pattern)(5)
SqlMessageusing System;using System.Collections.Generic;using System.Text;names
設計模式(C#) - 迭代器模式(Iterator Pattern)(1)
返回“設計模式(C#)系列文章索引”介紹提供一種方法順序訪問一個聚合對象中各個元素,而又不需暴露該對象的內部表示。示例有一個Message實體類,某聚合對象內
設計模式(C#) - 迭代器模式(Iterator Pattern)(3)
IIteratorusing System;using System.Collections.Generic;using System.Text;namesp
設計模式(C#) - 迭代器模式(Iterator Pattern)(4)
Testusing System;using System.Data;using System.Configuration;using System.Coll
設計模式(C#) - 解釋器模式(Interpreter Pattern)(1)
返回“設計模式(C#)系列文章索引”介紹給定一個語言, 定義它的文法的一種表示,並定義一個解釋器,該解釋器使用該表示來解釋語言中的句子。示例有一個Messag
設計模式(C#) - 解釋器模式(Interpreter Pattern)(3)
Contextusing System;using System.Collections.Generic;using System.Text;namespac
設計模式(C#) - 解釋器模式(Interpreter Pattern)(4)
DatabaseExpressionusing System;using System.Collections.Generic;using System.Te
設計模式(C#) - 解釋器模式(Interpreter Pattern)(5)
MethodExpressionusing System;using System.Collections.Generic;using System.Text
設計模式(C#) - 命令模式(Command Pattern)(1)
返回“設計模式(C#)系列文章索引”介紹將一個請求封裝為一個對象,從而使你可用不同的請求對客戶進行參數化;對請求排隊或記錄請求日志,以及支持可取消的操作。示例
設計模式(C#) - 命令模式(Command Pattern)(2)
Actionusing System;using System.Collections.Generic;using System.Text;namespace
設計模式(C#) - 命令模式(Command Pattern)(3)
ICommandusing System;using System.Collections.Generic;using System.Text;namespa
設計模式(C#) - 命令模式(Command Pattern)(4)
Messageusing System;using System.Collections.Generic;using System.Text;namespac
設計模式(C#) - 迭代器模式(Iterator Pattern)(2)
ICollectionusing System;using System.Collections.Generic;using System.Text;name
設計模式(C#) - 責任鏈模式(Chain of Responsibility Pattern)(1)
返回“設計模式(C#)系列文章索引”介紹為解除請求的發送者和接收者之間耦合,而使多個對象都有機會處理這個請求。將這些對象連成一條鏈,並沿著這條鏈傳遞該請求,直
設計模式(C#) - 責任鏈模式(Chain of Responsibility Pattern)(2)
MessageModelusing System;using System.Collections.Generic;using System.Text;nam
設計模式(C#) - 責任鏈模式(Chain of Responsibility Pattern)(3)
AbstractExecutorusing System;using System.Collections.Generic;using System.Text
設計模式(C#) - 責任鏈模式(Chain of Responsibility Pattern)(4)
Leaderusing System;using System.Collections.Generic;using System.Text;namespace
設計模式(C#) - 責任鏈模式(Chain of Responsibility Pattern)(5)
clIEntusing System;using System.Data;using System.Configuration;using System.Co