NET2.0 implements net3.5 features, such as extension methods, LINQ, etc.

Source: Internet
Author: User

Almost two years did not touch net, today want to do a small tool, so opened a long-lost VS2012, due to customer terminal or WinXP era, and is net2.0, and the upgrade has limitations, it must be developed in 2.0, the former common library is 3.5 write, and because 3.5 of the extension, LINQ and so very fast and convenient, so write up 2.0来 very awkward, on-line check, incredibly find a very simple way, specifically to write down:

1. Add the System.Core.dll in net3.5 directly to the 2.0 project (reference), and the "specific version" in the property is set to False

2. Using System.Linq in the code;

Happy to play it ~

NET2.0 implements net3.5 features, such as extension methods, LINQ, etc.

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.