Category Archives: architecture

Design Patterns with C#

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 … Continue reading

Posted in architecture | Leave a comment