Creational Patterns
Singleton
// Declare a singleton instance private static SingletonClass instance; // Hide constructor protected SingletonClass(){ } // Construct singleton instance public static SingletonClass Instance(){ if (instance == null){ instance = new SingletonClass(); } return instance; }
Behavioral Patterns
Structural Patterns
References
* http://sourcemaking.com/design_patterns
* http://www.dofactory.com/Patterns/Patterns.aspx#list