title: How to create a class which can only have a single instance in C#
body: <p>I wonder if there is a mechanism or pattern to allow only one instance of a class in C#. I have heard of the <code>Singleton</code> class, but i don't know how to use it well.</p>