Playing Chicken With Common Sense

Generic C# Singleton goodness

  Here is a Generic Singleton factory. Enjoy! // this is the class for which I want to maintain a single instancepublic class MyClass{ private MyClass() { // private constructor ensures that callers cannot instantiate an object using new() }} // Singleton fac... [More]
  • 0 Comments
  • E-mail
  • Kick it!
  • Shout it
  • Bookmark and Share

Control panel

RecentComments

Comment RSS