4 ms·
Here's Jon Skeet's writeup of why this is bad and what you should be doing: http://csharpindepth.com/Articles/General/Singleton.aspx http://csharpindepth.com/A
by bentcorner 11y ago
Here's Jon Skeet's writeup of why this is bad and what you should be doing:
http://csharpindepth.com/Articles/General/Singleton.aspx 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.