ASP.NET Application variables or Static Members?
I was not aware that it was possible to use Static members in Classes and have them retain their state until today when myself and a few colleagues were discussing some code in an older application Portfolio Europe developed called EBCentre which is a stock management tool for Used Car Dealerships used throughout the UK and Europe.
After a little searching one of my colleagues came up with an MSDN article that states: -
A key reason that the Application object exists in ASP.NET is for compatibility with classic ASP code—to allow easier migration of existing applications to ASP.NET. If you are creating an ASP.NET application from scratch, you will want to consider storing data in static members of the application class rather than in the Application object. This will yield a performance increase over using the Application object. An explanation of using statics, as well as some sample code, is listed in Microsoft Knowledge Base article Q312607: INFO: Application Instances, Application Events, and Application State in ASP.NET.
That's something new I learnt for today :)