by Steven Smith
Feedback
|
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days):
29316/
62
|
|
|
References and Summary |
|
|
|
User Comments
Title:
Just use public static readonly
Name:
Ramon Smits
Date:
2010-12-08 7:42:43 PM
Comment:
Just use a public static readonly member. Easy, fast, lazy and threadsafe!
public class MyClass { public static readonly MyClass Instance = new MyClass(); private MyClass(){} }
Much easier then this will be difficult to do!
|
|
Product Spotlight
|
|