14-12-27 C # syntax 01

Source: Internet
Author: User

The 1. NET Framework framework is an integral part of the. NET platform, providing a stable operating environment to ensure that the various applications we develop based on the. NET platform are functioning normally. The. NET Framework framework consists of two parts of the CLR (Common Language Runtime) and. NET class Library


2 The computer can understand the language is the programming language, Learning Java students use the platform is the Java platform, the language used is the Java language, learning. Net of students, we use the platform is. NET platform, the language we use is the C # language. In the. NET platform, C # is our mainstream development language. We can develop based on the C # language. NET platform, but if you're developing an application that's out of the. NET Framework framework, it's not going to work.


3. NET can do 1 desktop applications WinForm applications such as qq,360; 2 Internet Applications ASP. Web is what we call the website such as Csdn Ctrip Dangdang Autohome (main push); 3 Mobile phone development WP8 (main push); 4 Unity3d Tour Play development (higher threshold) or virtual reality (lower threshold) (main push)

4 c/S client Server mode client must install client software QQ VS; b/S Browser server mode client just install a browser

5 windows+r call up cmd; when you create a VS program, the first line is the project name, the second line is the project location, and the third line is the solution file; The purpose is that the keyboard is broken, you are apprenticeship; solution includes project, under solution if you want to create a new project, right-click the solution, create a new project ; Properties property, reference, App. Config config file, these few first without tube; end With. CS generally we call it class files. Add a new class under a project, right-click the project, add, class, Solution contains project, project is the containing class. A solution can have many many projects, and a project can have many many classes. To fix the solution Manager, point to the fixed button on the left of the X, and the solution if it doesn't, click the menu view, the second one is Solution Explorer, the using System, which references namespaces, you can use classes in other projects, and you see in code that a word is modified by class, Then he is a class; the name behind the namespace is the name of the project, and the main function is the primary entry for our program, and the code you write is written in the main function if you want to be executed. ;. sln is a solution file that contains information about the entire solution, which can be run by double-clicking;. csproj is a project file that contains information about the project and can be run by double-clicking.

6 Console.WriteLine () Quick Writing CW clip two tabs; all the punctuation in the code is half-width, shift toggles the Chinese half-width and the English half-angle shift+ the space to quickly switch between full-width and half-width; the end of each line of code in C # is a semicolon of the English half-width ; Press F5 to run code Console.WriteLine ("Hello World"); Print the contents of parentheses to the console Console.readkey ();//Let this program pause, waiting for the user to press any key to continue, press any key will be displayed in the console

7 F6 Build Solution to help us troubleshoot syntax errors; tools-Options-text editor-c# with line numbers in them; tools-options-environment-fonts and colors; Tools-options-environment-general-color theme; tools-Import and Export-reset all settings; shift plus scroll wheel to quickly adjust font size , modify the startup item, select the solution, right-click Properties, start the project, select the currently selected project, that is, which project you are editing, which project is the startup item, build the project, but reluctant to delete, right-click the project, unload the project, to use, right-click reload; the IDE refers to our development tools; ctrl+k+d Quick Alignment Code Ctrl+j quick Pop-up can only prompt shift+end shift+home; ctrl+k+c comment on selected code; Ctrl+k+u Remove Comment F1 go to help document; Collapse redundant code #region #EndRegion

14-12-27 C # syntax 01

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.