01.
My Composite in C#//MyCompositeusing System;using System.Collections;//----------------------------------Class FileElementabstract class CFileElement{ //Fields protected string name; public CFileElement(string name) {...查看完整版>>
My Composite in C#
02.
My FactoryMethod in C#//MyFactoryMethodusing System;using System.Collections;//SinglePage class,which build the at last product,part element//----top classabstract class SinglePage{};//----element1class RegisterPage:Single...查看完整版>>
My FactoryMethod in C#
03.
设计模式c#语言描述——合成(Composite)模式设计模式c#语言描述——合成(Composite)模式 *本文参考了《JAVA与模式》的部分内容,适合于设计模式的初学者。 合成模型模式属于对象的结构模式,有时又叫做部分-整体模式。合成模式将对象组织到树结构中,可以用来...查看完整版>>
设计模式c#语言描述——合成(Composite)模式
04.
My Bridge in C#//MyBridgeusing System;//-------------------------------------------------Class Manager//parent classabstract class Manager{??? //Method:KickOut?abstract public void KickOut();};//sonclass1:FemaleMana...查看完整版>>
My Bridge in C#
05.
My Adapter in C#//MyAdapterusing System;//Class1class SimpleDrawer{ //Methods virtual public void SetColor(string name){}};//Adapter Class which enables class1 to use class2 methodsclass AssistantDrawer:SimpleDrawer{...查看完整版>>
My Adapter in C#
06.
My Singleton in C#//MySingletonusing System;//SingletonPage Classclass SingletonPage{ //Fields protected static SingletonPage checkoutpage; //Constructor is protected to ensure Singleton protected SingletonPage() { ...查看完整版>>
My Singleton in C#
07.
My Prototype in C#//MyPrototypeusing System;using System.Collections;//abstract PageStylePrototype Class 'Prototypeabstract class PageStylePrototype{ //Fields protected string stylestring; //Properties public string...查看完整版>>
My Prototype in C#
08.
My Builder in C#//MyBuilderusing System;using System.Collections;///////////////////////product///////////////////////class HomePage{ //Fields private string pagetype; private string samplecode; private Hashtable par...查看完整版>>
My Builder in C#
09.
My AbstractFactory in C#//MyAbstractFactoryusing System;///////////////Basic Products//////////////// //AbstractProductsabstract class FontsStyle{ public string stylestring; };abstract class TablesStyle{ public string styles...查看完整版>>
My AbstractFactory in C#
10.
Destructors in C#Destructors in C#By IntroductionIn the enterprise application development world, the buzzwords arePerformance, Scalability, and Security. I started my career as a VC++programmer, and one fine morning,...查看完整版>>
Destructors in C#
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。