C # Escape Character

Source: Internet
Author: User

· A special character constant;
· Starts with a backslash "\", followed by one or several characters.
· It has a specific meaning. It is called "escape" because it is different from the original meaning of the character.
· It is mainly used to indicate controls that are not easily expressed with general charactersCode.
· Its function is to eliminate the original meaning of the character following it
· Use a combination of some common characters to replace some special characters. Because the combination changes the meaning of the original character representation, it is called "escape"
· Use visible characters to indicate invisible characters. For example, '\ n' indicates line feed.

Common escape characters and their meanings:
\ 'Single quotes
\ "Double quotation marks
\ Backslash
\ 0 null
\ A warning (generate a peak)
\ B Return
\ F form feed
\ N line feed
\ R press ENTER
\ T horizontal Tab
\ V vertical Tab

 

In C #, @ indicates:
In C #, "C: \ Temp" indicates that the path is c: \ Temp, while @ "C: \ Temp" indicates c: \ Temp. Therefore, @ should be used to ignore escape characters.

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.