Asp. The annotation symbol in net

Source: Internet
Author: User
Tags comments
asp.net The single quote character (') introduces a comment line in vb.net code. It can be used anywhere on the a source line. The end of the physical line ends the comment.
The keyword Rem also introduces a comment in vb.net code. It can be used anywhere on the a source line. The end of the physical line ends the comment.
The characters/* and/open and close respectively a multi-line comment block--the so called regular comment--in C # code . Regular comments can span over a section of "a", a single line, or multiple lines.
The double slash characters (//) introduce a one-line comment in C # code and can is placed anywhere on a source line. The One-line comment extends to the "end of the" line. Equivalent to ' and Rem in vb.net.
The comments introduced by tripple Slash characters///(are) c#-specific a feature. By means of XML markup can document your code (e.g. <param> are used for describing). If you run the compiler with THE/DOC option, it automatically generates a XML documentation file.
The characters <!--and--> are standard HTML (adopted from SGML) comment delimiters. Note, that's the comment text is sent to the browser and thus visible outside (source code).
Server-side Comments (<%----%>) enable ASP.net page developers to prevent server code (including server controls) nd static content from executing/rendering. They assume a similar to the standard HTML comments with the smashing difference this text of the comment is not Sent to the browser.



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.