C# Design Patterns - Singleton

added by DotNetKicks
2/25/2019 4:52:43 PM

2 Kicks, 467 Views

The Singleton is a creational design pattern which allows us to create a single instance of an object and to share that instance with all the users that require it. There is a common opinion that the Singleton pattern is not recommended because it presents a code smell, but there are some cases where it fits perfectly.