if i have a standard ASP.NET application, is there any difference between making an object static as opposed to putting the object instance in the Application state?
from my understanding, both objects exist ONCE for the app domain.
Secondly, what happens if you have a static object in a referenced dll, for an ASP.NET site. It's also part of the app domain, so it will always exist once?
Best Answer
From: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q312607
Also, yes, static variables behave the same way regardless of where they are loaded from, and exist exactly once per app domain (unless you're talking about those labeled [ThreadStatic])