[Reading Notes] C # Study Notes 1:. Net Framwork,

Source: Internet
Author: User

[Reading Notes] C # Study Notes 1:. Net Framwork,

Preface:
An accidental opportunity to see a book published by @ Learning hard in the garden: <C # Study Notes>, and then I bought it until now. It feels good and suitable for beginners, the content in the book is from C #1.0 to 5.0. comprehensive and meticulous.

Next I will share some of the things that I feel need to record in this book.

Here first post @ Learning hard I in the blog Park home: http://www.cnblogs.com/zhili/
And some knowledge points in this book: http://www.cnblogs.com/zhili/category/421637.html

 

I:. Net Framework

1.1.Net Framework is the execution environment when an application is running. It provides the following services for application execution:

> Comprehensive Class Libraries
> Memory Management
> General Type System
> Development structure and technology
> Language interoperability

Composition of 1.2. Net Framwork

1. Public Language Runtime

The Common Language Runtime is. net Framwork core. we can regard CLR as a proxy for managing code during execution. It provides memory management, thread management, and exception handling services, and is also responsible for implementing strict type security checks on code, this ensures the correctness of the Code. the Code managed by CLR is calledManaged code(Managed code), the code that is not managed by CLR is calledUnmanaged code(Unmanaged code ).

CLR consists of two components: Common Type System (CTS) and Common Language Specification (CLS ).

 

1.3. Net Framwork class library is a collection of DLL assembly.

 

1.4 C # Code Execution Process

> C # stage in which the code is compiled into the intermediate language code

When compiling C # code, C # 'S Compiler (VS integrates C # compiler) translates the code into Common Intermediate Language (CER) code.

> The intermediate language code is compiled into the code phase of this season.

To enable C # code to run, you need to further convert the template code to the machine code of a specific CPU. This process is completed by the instant Compiler (Just-In-Time, JIT.

● Not only C # code can be compiled into intermediate language code. net language must be compiled into intermediate language code before execution. this process is completed by the compiler.

● After JIT compilation generates the local code, the compiled code will be placed in a buffer cache. When you call the same code next time, you can directly run the existing local code in the cache area, this avoids re-verification of the IL code and compilation of the cost machine code. using this method, the system will only cause some performance loss (I .e. JIT process) during the first call ).

 

PS: I wanted to write more content today, but it is not too early. there are still a few images missing. I will try again tomorrow. If I have time, I will share some of the things I learned at work, such as remote Debug and SQL profiler.

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.