Click here to Skip to main content
12,242,812 members (49,458 online)
Click here to Skip to main content

Tagged as

Stats

6.3K views
2 bookmarked
Posted

Simple Singleton Pattern in C#

, 27 Oct 2011 CPOL
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()); } ...

Views

Downloads

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

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160426.1 | Last Updated 27 Oct 2011
Article Copyright 2011 by ForgaSw
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid