in Dot Net by

 How to implement singleton design pattern in C#?

▼ Show 1 Answer

0 votes

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();
Learn More with Madanswer

Related questions

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