React.js
Angular
Ethical Hacking
Agile
AWS
BlockChain
Cassandra
Cloud
Salesforce
Scaled Agile
TOGAF
DevOps
GIT
Jenkins
Jira
Kibana
Linux
NGINX
Ansible
Artificial Intelligence
in Dot Net by

 How to implement singleton design pattern in C#?

Click here to read more about DevOps

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

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