This singleton definition makes no sense. In particular,
display
makes no sense, incorrect (would work, but it needs to be
static
, because "this" is not used) and unrelated to singleton functionality. Exposing
Instance
would work but means bad style.
First, read this:
http://en.wikipedia.org/wiki/Singleton_pattern[
^].
And here is a good singleton sample:
http://csharpindepth.com/Articles/General/Singleton.aspx[
^].
—SA