Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Tagged as

Simple Singleton Pattern in C#

, 27 Oct 2011
Another alternative: class Singleton { public static Singleton m_Instance; //Prevent instance creation from other classes private Singleton() { } public static Singleton Instance { get { return m_Instance ?? (m_Instance = new Singleton()); } ...

Statistics


License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

ForgaSw

Peru Peru
No Biography provided

| Advertise | Privacy | Mobile
Web02 | 2.8.140814.1 | Last Updated 27 Oct 2011
Article Copyright 2011 by ForgaSw
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid