Khi khai báo một ký tự chữ chứa dấu chéo ngược (\), trong C# nó cần được theo sau bởi ký tự escape sequence (dịch thô là trình tự thoát, ở đây ký tự này thực thi một nhiệm vụ tại nơi nó được đặt. Như tab ngang, dọc, xuống dòng, lùi đầu dòng, tạo ngoặc đơn, kép..)

Escape Sequence UTF-16 character Description
\' \u0027 Single quotation mark
\" \u0022" Double quotation mark
\\ \u005c Backslash
\0 \u0000 allow to enter the character with code 0
\a \u0007 Bell (alert)
\b \u0008 Backspace
\f \u000c Formfeed (next page)
\n \u000a New line (next line)
\r \u000d Carriage return
\t \u0009 Horizontal tab
\v \u000b Vertical tab

\u _ _ _ _ : Cần theo sau chính xác 4 ký tự thập lục phân.
\U _ _ _ _ _ _ _ _: Cần theo sau chính xác 8 ký tự thập lục phân.
\x _ _ _ _: Cần theo sau 1 đến 4 ký tự thập lục phân.

1.Standard ASCII Chart / ASCII Table - Hex to Decimal Code Conversion

2. Extended ASCII Chart / ASCII Table - Hex to Decimal Code Conversion

Update: 23/02/2014
Update: 12/07/2015
(Đang biên tập)

thumbnail C# Programming: Escape Sequences

data:label.name author

premiumpng.com

Design Publisher

Download 0
No comments
Template in .PSD format

MR Laboratory License

Free for personal purpose use . More info


Buy Now This Template

No comments:

Post a Comment

Commets Download Photoshop Actions, Lightroom Presets, PSD Template, Mockups, Stocks, Vectors, Fonts. Download free

Newer Post Older Post Home

Copyright © 2021 MR Laboratory All rights reserved.

Setting