Faceți căutări pe acest blog

17.10.07

Implementing Singleton in C#

You are building an application in C#. You need a class that has only one instance, and you need to provide a global point of access to the instance. You want to be sure that your solution is efficient and that it takes advantage of the Microsoft .NET common language runtime features. You may also want to make sure that your solution is thread safe.


http://msdn2.microsoft.com/en-us/library/ms998558.aspx