Use static in ASP. NET to replace application

Source: Internet
Author: User
Yes ArticleMentioned above, the static variable can be used in the application to replace the application.

Because the application comes from ASP, the purpose is to facilitate the transfer of ASP to Asp.net, while the variables stored by the application are all objects, where box and Unbox bring overhead, the static modifier clearly defines the variable type, so it requires less overhead, which will improve the performance.

It should be noted that static is related to the same type, and application is a global variable and will not change because of different sessions.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.