Basic knowledge of C #

Source: Internet
Author: User

The 1.console.readline () method is used to read a line of characters and save the obtained data in a string variable

The Console.read () method is used to obtain the ASCII value of any one character entered by the user, which can be any letter or number.

2.console.writeline () method (display text on screen) line wrapping after output information

Console.Write () method output information does not wrap.

3.Main () is the first function that executes in a C # program.

4. Type conversion convert to Parse

A 5.Struct (struct) enum (enum) is a data type of a value type and cannot be added to a method.

Syntax for 6.foreach statements:

foreach (type identifier in expression)

{

Statements

}

Basic knowledge of C #

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.