C # start of school

Source: Internet
Author: User
1. net framework1.1.net framework definition pair. net Framework has a variety of arguments, but the Representative definition is :. net represents a set, an environment, and a programmable structure that can be used as a platform to support the next generation of Internet .. . NET Framework is a platform established by Microsoft to develop applications. You can create Windows applications, web applications, web services, and other types of applications.

.. NET framework can be used in a variety of languages, including C #, C ++, Visual Basic, and JScript.. NET Framework. They can also interact with each other.
1.2. NET Framework content. NET Framework mainly contains a very large code library that can be used in customer languages through Object-Oriented Programming (OOP. This library is divided into different modules. One module contains components of Windows applications, one module contains network programming code, and one module contains web development code blocks. Different operating systems can support some or all of the modules based on their own features. You can choose to use each part of the modules based on the expected results.

In addition to the knowledge library, the. NET Framework also contains the. NET Common Language Runtime (CLR), which manages the execution of all applications developed using the. NET library.
1.3 using. NET Framework to write applications using. NET Framework is to use the. NET code library to write code. The development environment is. I now learn and summarize C #, so I use C # code. To execute C # code, you must convert it into a language that can be understood by the target operating system, that is, the local code. This type of conversion is compiled code and executed by the compiler. However, under. NET Framework, this process is divided into two phases.
1.3.1 msil and JIT are used in compilation. the code in the net framwork library is compiled into Microsoft intermediate language (msil) code instead of creating the operating system-specific local code immediately, the created msil code is stored in a set of programs that are not dedicated to any operating system.

To execute an application, you must do more. This is the task of the just-in-time (JIT) compiler. He compiled msil into local code dedicated to OS and target machine structures so that OS can execute applications. JIT indicates that msil is compiled only when needed.

Summarize the steps required to create a. NET application:
1. Use a certain. Net compatible language to write application code.
2. Think of the Code as msil and store it in the Assembly.
3. When executing the code, you must first use the JIT compiler to translate the code into the local code.
4. Run the local code and other applications or processes in the managed CLR environment.

2. C #2.1 Definition

C # is one of the languages used to create applications to run on. net clr. It is created by Mircrosoft to use the. NET platform. Using C # To develop an application is easier than using C ++ because of its simple syntax.


C # is only a language used for. NET development, but it is the best language. C # has the advantage that it is the only language designed for. NET Framework and is the main language used for porting to. Net versions on other operating systems. C # each function provided by the. NET Framework code library can be used.

2.2 C # Programming

Windows applications: Use the. NET Framework Windows Forms module to generate such applications. The Windows form module is a space library, where controls (such as buttons, toolbar, menus, etc.) can be used to create a Windows User Interface (UI ).


Web applications:. NET Framework includes a powerful system that dynamically generates web content, allowing personalization and security. This system is called Active Server Pages. Net (ASP. NET). We can use C # To create an ASP. NET application through web form.


Web Service: this is a new way to create various distributed applications. Using Web services, you can exchange data over the Internet. No matter what language you use to create a web service or what system the Web service resides on, you can use the same simple syntax.

3. Development Environment-Visual Studio

I used Visual Studio 2010 for all C # programming, including simple command applications and complex project types. VS is not a development tool or integrated development environment necessary to develop C # applications, but it can make the task simpler. You can process the C # source code file in the basic text editor and compile the code into the assembly using the command line application.

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.