Link Details

Link 92376 thumbnail
User 71517 avatar

By Volume4
via dotnet.dzone.com
Published: Jul 03 2008 / 23:09

Problem: Store some common data in a singleton or static class about your program in an object array, which you store in a class. It saves state between usages and stores some caches, and must be initialized only once and shared in many code locations. Making a new object each time would be expensive.
  • 13
  • 1
  • 1610
  • 342

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.