Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Singleton pattern

The purpose of Singleton pattern is limit class object instantiation by only one instance. It usually achieved by making class constructor private and adding static accessor which returns an unique class instance.

Sample content:

  • Singleton thread safe Singleton implementation with lazy instance initialization

See usage example in Program.cs.