Singleton Pattern – Design Patterns in C#

1
20



Singleton Pattern has few usages, but when used appropriate is very helpful.
But you need to be aware of the disadvantages of using it! When the instance gets broken – you need to restart the app to repair it – it might cause you troubles!

We’ll create an Logger as an example usage of Singleton Pattern.

Here is link to github repository with this project:

You can check out my facebook profile to see more programming content :

Nguồn:https://wijstaanvooronzegrondrechten.org/

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here