Basic knowledge of C # and VS2010 tips

Source: Internet
Author: User

Read some basic video, only to find that their foundation is relatively weak, there is a lot of basic knowledge do not know. Here is a summary of some basic knowledge.

1:

foreach can be used not only for the index collection of the list class, but also for traversing the dictionary class, which is a great advantage over the for

dictionary<int,Long> dary =Newdictionary<int,Long>(); Dary. ADD (1,2); Dary. ADD (2,3); Dary. ADD ( A, the); stringSall =string.            Empty; //in vs2010, after typing foreach, double-click the tab key to automatically jump out of the back of the statement, very fast and convenient.             foreach(varIteminchdary) {Sall+ = Item. ToString () +"  ";            } Console.WriteLine (Sall);            Console.ReadLine (); return;

Basic knowledge of C # and VS2010 tips

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.