Advertisement
sahcine

Singelton pattern

Sep 22nd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.80 KB | None | 0 0
  1. This example demonstrate a singelton pattern and how it work. This pattern guaranteed that only one instance of this object will ever be made. This is a pice of info about Singelton from Wikipedia: In software engineering, the singleton pattern is a design pattern used to implement the mathematical concept of a singleton, by restricting the instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system. The concept is sometimes generalized to systems that operate more efficiently when only one object exists, or that restrict the instantiation to a certain number of objects.
  2. ----------------------------------------------------------------------------------------------------------------
  3. download full project from here: https://goo.gl/BCe7ug
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement