Character Processing, trycatch, Boolean expression

Source: Internet
Author: User

The characters are enclosed in quotation marks. \ must be added before the quotation marks, for example, "\" mygame \""

{0} in console. writeline ("{0} {1}", mystring, myinteger) // represents the placeholder of mystring, and {1} is the placeholder of myinteger.

Escape Character Table: (The following is the generated character)
\ 'Single quotes
\ "Double quotation marks
\ Backslash
\ 0 null
\ A warning (audible)
\ B Return
\ F form feed
\ N line feed
\ R press ENTER
\ T horizontal Tab
\ V vertical Tab

In a string with a double slash, add @ to the front, such as @ "C: \ temp \ doc \ myfile.doc"

1 C # debugging to enable the error to be reversedCode:
2   Try  
3 {
4 .
5 }
6   Catch (Exception E)
7 {
8 Console. writeline ( " Fuck you! Shit " ); // Custom Information
9 Console. writeline (E. tostring ()); // When exception e is added, the system error details are displayed.
10 }

C # Boolean expression:
= Equal! = Not equal to <less than> greater than <= less than or equal to> = greater than or equal
! & All | or ^ one of them & if all | or one of them

Lowercase statement: object. tolower ()

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.