Singleton in .NET

While I personally don't like the Singleton pattern too much (it is essentially an OO mask for Global Variables, which makes it harder to unit test etc.), I still need to use it now and then. Anyway, I saw a post by Jack Altiere about Using the Singleton Pattern in .NET and since it presents an implementation that leaves a lot to be desired, I decided to comment on that.


April 01, 2008
URL:http://www.drdobbs.com/windows/singleton-in-net/228700947

Terms of Service | Privacy Statement | Copyright © 2024 UBM Tech, All rights reserved.