I said, very sweaty

Source: Internet
Author: User

Use generic collections such as dictionary. use generic interfaces and generic methods to forget hashtable and arraylist.

Use the built-in generic delegate action and func of the framework to define the new delegate type.

Use LINQ to XML instead of xmldocument and xpathnavigator.

Use Entity Framework (AEF) instead of LINQ to SQL. If it is not an SQL Server database, select an ORM framework.

Use WCF to upgrade WSE, MSMQ, And. Net remoting.

Please familiarize yourself with the classes under system. Threading. task, so that you can increase the programming capability under multithreading to a new level (. NET 4.0 ).

Use manualreseteventslim and readerwriterlockslim as much as possible. Use spinlock instead of monitor in some cases. These will bring better performance and more comfortable use (. NET 4.0 ).

Use Dynamic instead of reflection whenever possible.

Consider the classes in the system. runtime. caching namespace if you want to perform global Cache Management.

Use the razor template instead of the ASPX page and master page, and use MVC.

Please give up the old gridview. The Ajax age has been around for many years. These flashy controls serve as toys for teaching.

If you are still using. net2.0/vs2005, please upgrade it as soon as possible. Even if you cannot reach. net4.0 or use. net3.5, a simple var will make coding feel much better.

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.