. NET "coding rules" small total

Source: Internet
Author: User

Look at it. NET video after the feeling. NET and the previously learned language have many similarities. Now just the coding rules, let's see what's different.

Each statement in the program ends with a carriage return, and a line writes a statement. If a line is not enough to write, you can continue writing at the end of the first line at the end of the "-" link. Eg:inputbox ("Please enter the content:",-"input Box",)Note: Some languages are required to end with a semicolon ";".
Second, the statement input is not case-insensitive. However, after VB.net is compiled into an intermediate language via the CLR, the conversion is done by the CTS, which is automatically done by the VB.net compiler environment. The entire. NET platform is case-sensitive. Eg:a and A are the sameNote: There are differences in the case of most languages.
three, in a row to enter multiple command statements are required to ":" Delimited. eg:a=a+b:c=c+bNote: Some languages are separated by a space "" character, and some languages are separated by commas ",".
Iv. There are two forms of annotations. 1. Single-line comment statement: The single quotation mark "'" begins, after which the comment content is added, which is generally used to interpret a statement. eg:Console.Write ("Result! ") ' Output resultsNote: Some languages are separated by "//".
2. Multiline Comment statement: begins with REM and is generally used to interpret classes and procedures, before classes and processes. Eg:rem This type of module is mainly used for ... Note: Some languages use/*...*/to annotate statement blocks.     That's what I'm probably right about. Net of understanding, but also need a lot of advice. Of course, to solve her mysterious veil, but also need to slowly in-depth understanding ^_^

. NET "coding rules" small total

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.