. NET programmers must know

Source: Internet
Author: User

1.c#, the difference between . Net and ASP :

C # (CSHARP): a language under the. NET Platform; Note: (Other languages can also be developed.) NET program)

. NET: is a platform that provides a virtual machine to run. NET programs, inside, etc.

asp: Technology for developing Web sites in the. NET environment.

Note:. Net can be developed through Mono cross-platform

2. Development tools:

1.Visual Studio is a development tool officially provided by Microsoft

2. Run. NET program depends on the. NET Framework (Install the. NET Framework).

3..Net and Visual Studio High version compatible with low version

3. Write the program in Notepad:

1. After the program is written, the suffix name is changed to (. cs)

2.

3. Open (CD:) at the cmd command prompt where the files are written C:\Windows\Microsoft.NET\Framework\v4.0.30319 (note: version number) \csc.exe File name. cs (exe executable file generation)

4. Note:. NET program runs must depend on the. NET Framework and cannot run independently. The generated EXE, DLL is not ordinary "native", but called "Assembly", is "msil/il" binary bytecode. The CLR in the. NET Framework is the core Linux that runs. NET programs, You can also run. NET programs under non-Windows systems such as iOS: through mono. You can also use Xamarin to develop mobile programs on Android and iOS. (Linux stable; C Sharp develops high efficiency)

4. Use of Visual Studio:

Note: Case sensitive, in English characters.

Solutions > Projects > Code (Class)

(. csproj) Project file

(. sln) Open all files under solution

Console.readkey ()//wait for the user to enter a character

5. Notes:

1. Comments are divided into single-line comments//

2. Multiline Comment/* ..... */

3. Text Notes//

6. Anti-compilation and anti-compilation optimizations:

1. Anti-compilation Tool:Reflector ( An earlier anti-compilation tool )

Ilspy(try to use this compilation tool later)

Anti-compilation:

1. The contents of the note cannot be decompile;

2. Programs written in C # can be recompiled, ( programs written in programming languages such as c\c++ will not come back).

3. Compiler optimizations: Optimization of unused variables (variables not used) and (example:int i=2+7, automatically optimized to int i=9).

7. Extensions:

1.CLR (Common Language runtime, Common language runtime )

Function: Mainly responsible for security, memory management, program operation and exception handling

2. source code for applications written in the . NET Framework

Was initially compiled into an intermediate language called MSIL . The initial compilation is performed by the language-specific command-line compiler (Visual Studio or other build tools ) . When you execute an application, you typically perform two compilations. Two compilations will acquire the intermediate language and compile it into executable code that can be run in the operating system. Two compilations are called JIT (just-in-time, instant ) compilation.

Note: 3. CLI (Common Language Infrastructure, Common Language Infrastructure ),CTS (Common typesystem, Public type systems ),CLS (Common Language specification, Common Language Specification ) , and VES (Vsan execution System, virtual execution Environment )

4.Mono

Concept:Mono is an Open Source project that provides the C # compiler and CLR in a non-Windows operating system

MonoDevelop: AccompanyMonotogether is namedMonoDevelopof Open SourceIDE, theIDEas aSharpDevelop IDEa port to start together. MonoDevelopwas originally a permission toLinuxon theMonodevelopment of the project, but withMonoDevelop2.2release, it also has aMac,Windowsand other non-Linux UNIXon the platform withMonothe ability to develop.

. NET programmers must know

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.