+1 vote
in Dot Net by

 How to implement singleton design pattern in C#?

1 Answer

0 votes
by

In singleton pattern, a class can only have one instance and provides access point to it globally.

for example 

Public sealed class Singleton
{
Private static readonly Singleton _instance = new Singleton();
}

Related questions

+1 vote
asked Jun 25, 2019 in Dot Net by Venkatshastri
+1 vote
asked Jun 25, 2019 in Dot Net by Venkatshastri
...