Google News
logo
C# - Interview Questions
How to implement a singleton design pattern in C#?
We can implement a singleton design pattern in C# using :
 
* No Thread Safe Singleton.
* Thread-Safety Singleton.
* Thread-Safety Singleton using Double-Check Locking.
* Thread-safe without a lock.
* Using .NET 4’s Lazy<T> type.
Advertisement