[C#]-WEBFORM-Application v.s Static

摘要:[C#]-WebForm-Application v.s Static

參考:

http://weblogs.asp.net/plip/archive/2003/12/01/40526.aspx

 

重點摘錄:

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.

 

看來,在.net似乎可以用靜態變數來取代 Application 物件了..