C # Basic Knowledge practices

Source: Internet
Author: User

1.c# has a lot of built-in types, and it needs to declare variables and operate on that basis, discovering something that was previously unknown: characters can be typed according to ASCII

There is also a type conversion to be aware that the range of the assigned object must not be less than the range of the assignment variable, it is necessary to force the scope of the subsequent variable to be reduced by the display conversion and also to ensure that the value of the subsequent variable is still in the range of shrinking

There is also a placeholder {}, which means a variable that takes up a position to follow a comma

The expression in 2.Braching statements must be Boolean, and the case in switch must be either goto (spaghetti code) or break out

The following is a case where nothing is written for the For loop

3. For ternary operators (ternary-expression), you need to remember the semantics: judgment? On return: Wrong return. For symbols, it is necessary to remember their order of precedence.

C # Basic Knowledge practices

Related Article

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.