0

Possible Duplicate:
On Design Patterns: When to use the Singleton?

in what kind of situation Singleton pattern will be used. please explain with real life scenario. thanks

Community
  • 1
  • 1
Thomas
  • 33,544
  • 126
  • 357
  • 626
  • http://en.wikipedia.org/wiki/Singleton_pattern (A singleton in C# is the same as anywhere. Just read up on it.) – Kirk Woll Feb 11 '11 at 19:06

1 Answers1

0

I used it in a website that had a dynamically generated menu, that were shared by a group of users.

We generated the menu in memory, since we would loose performance if was read from the database every time it should be generated.

jgauffin
  • 99,844
  • 45
  • 235
  • 372