Hello C #

Source: Internet
Author: User

One: Program

1. New Project

  

2. Modify the name location

You need to select a console application.

  

3. The effect of the new project

  

4. Writing the first program

1 //here is the reference namespace2 usingSystem;3 usingSystem.Collections.Generic;4 usingSystem.Linq;5 usingSystem.Text;6 usingSystem.Threading.Tasks;7 8 //here's how to define namespaces9 namespaceHelloWorldTen { One     //Defining Classes A     class Program -     { -         //Defining Methods the         Static voidMain (string[] args) -         { -             //method Body -Console.WriteLine ("Hello C #"); +         } -     } +}

5. Effects

Ctrl+f5

  

Two: Shortcut keys

1.Home

Make the cursor to the front

2.End

Causes the cursor to move to the last face

3.shift

Start holding shift at the cursor position, then move the cursor one position and then press the cursor.

You can select all the contents of the period

Hello C #

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.