Static and Unity

Apr 26, 2008 at 5:07 AM
If I place the static keyword to the function, it will be a singleton pattern.

If I just want to do some simple singleton pattern, do I need to use Unity?
Apr 26, 2008 at 6:56 AM
If static does what you need, then use it.

If you need more control, or need to decouple your components, or you want something singleton like but not actually a singleton (per thread, per request, etc) then Unity can help.