设计模式之C#实现(二)---Builder[7]

[入库:2005年8月18日] [更新:2007年3月25日]

本文简介:选择自 cuike519 的 blog

       // the product's internal representation and defines the process by which it's

       // assembled.

       // includes classes that define the constituent parts,including interfaces for

       // assembling the parts into the final result.

       //要创建复杂的对象该对象我们用hashtable组合表示。

       public class product{

              hashtable m_parts = new hashtable();

 

              public void addparts(string partkey,string partvalue){

                     this.m_parts.add(partkey,partvalue);

              }

 

本文关键:设计模式,Builder
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top