Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Here's Jon Skeet's writeup of why this is bad and what you should be doing:

http://csharpindepth.com/Articles/General/Singleton.aspx

Note that using the last example isn't necessarily "the best", it really depends on your requirements.

Nonetheless, a very interesting read.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: