> Design Patterns > Singleton > Singleton Design Pattern In C#

Singleton Design Pattern In C#

Singleton design pattern in C# to create one and only one instance of a class.


Singleton design pattern In C#

Output

Data = 10


Suresh Kumar Srivastava is founder of online learning site coursegalaxy.com and author of popular books C In Depth, Data Structures Through C In Depth. He has 18+ years experience in industry and worked on architecture and design of multiple products. This article Singleton Design Pattern In C# is from his Design Patterns course.