Click here to Skip to main content
15,885,366 members
Articles / Programming Languages / C#

Singletons in C#, Static Constructor vs Static Initialization

Rate me:
Please Sign up or sign in to vote.
4.50/5 (12 votes)
1 Jul 2010CPOL2 min read 66K   16  
In C#, you can implement a thread safe singleton where the complexity is hidden in the .NET Framework, you do not even need an if statement!

Views

Daily Counts

License

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



Comments and Discussions