Breaking

Photo Gallery

Friday, October 5, 2018

Design Pattern - Singleton Pattern

In this post, I will explain how to create or implement singleton design pattern using c#. This pattern provides best way to create an object. This singleton class provides object which can be available without instantiate the object of the class.



Development :

1) Create a Singleton Class

2) Get the Singleton Object

3) Check the output ( Number of Instance should be 1 )



If you have any questions, post here. Also, provide your valuable suggestions and thoughts in form of comments in the section below.

Thank you !!!

No comments:

Post a Comment