Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. public class SomeSingleton
  2. {
  3. private static SomeSingleton instance;
  4.  
  5. private SomeSingleton()
  6. {
  7. }
  8.  
  9. public static SomeSingleton Instance
  10. {
  11. get
  12. {
  13. if (instance == null)
  14. {
  15. instance = new SomeSingleton();
  16. }
  17.  
  18. return instance;
  19. }
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement