First time here? You are looking at the most recent posts. You may also want to check out older archives or the tag cloud. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS. Thank you for visiting! (hide this)

design pattern

There are 1 entries for the tag design pattern

Singleton with VS2005 snippet

Ivan and the other guys in Wellington had their last Lunch with Geeks about Design Patterns. And came out with that idea: The most overused design pattern : Singleton. With the remark that a singleton should only be used when you need to keep state in your object internally. So, just to reinforce that concept, here is a VS2005 code snippet to quickly create a Singleton. I uploaded it on GotCodeSnippets.NET, a repository of code snippets. Download the Singleton VS2005 code snippet. It expands to the following code: public sealed class Singleton { private readonly static...