Cainiao journey-first knowledge of. NET, first knowledge of. net

Source: Internet
Author: User

Cainiao journey-first knowledge of. NET, first knowledge of. net

Pitfall. net has been around for more than two years.. Net System. net system also needs to understand, of course, this knowledge can also be found by reading materials, here mainly to learn about their own, and recently learn some of the taste of closed doors, now I want to share with you some ideas. If you have any misunderstandings, you are welcome to correct them!

. Net Framework has undergone many version changes, but its Framework has not changed much, including the Common Language Runtime (CLR), base class library, and. net Framework class library, public language specifications, and supported languages;

        

Common Language Runtime (CLR)

CLR is. the basic content of the. Net Framework is also. the runtime environment of the. Net program can be viewed as a proxy for managing code during execution. It provides memory management, thread management, code execution, and garbage collection (GC) and remote processing and other core services, and also enforce strict type security and other forms of code accuracy that can improve security and reliability.

C # Or the source code written in other languages generate the IL code hosting (IL also known as managed code) through the compiler, and finally get a managed module, one or more managed modules constitute the assembly) but the CLR still cannot directly interact with the operating system (OS). The JIT engine is also required to translate binary code that can be recognized by a computer and then handed over to the operating system for execution.

By the way, we have to mention the CLR here.Managed codeAndUnmanaged code:

Managed code is the code executed by CLR rather than the operating system. Hosted code applications can obtain the Common Language Runtime library service, such as automatic garbage collection, Runtime Library type check, and security support. These services help provide unified managed code application behavior independent of platform and language. Using managed code and its compilation in a managed execution environment can avoid many typical programming errors that cause security black holes and unstable programs. Similarly, many unreliable designs automatically enhance security, such as type security checks, memory management, and invalid object release. Programmers can spend more time focusing on application logic design and reduce the amount of code written. This means shorter development time and more robust programs.

Unmanaged code refers to the code that is directly executed by the operating system outside the public Language Runtime Library environment. The unmanaged code must provide its own services such as garbage collection, type check, and security support. Unlike the hosted code, the latter obtains these services from the public Language Runtime Library.

Base Class Library and. Net Framework

The NET Standard Library provides a series of common functions that support underlying operations, covering collection operations, thread support, code generation, and input/output (IO), ing, security, and other fields. In addition ,. net Core is also the implementation of the base class library, of course, also has its own unique implementation, and. net Framework is different, it supports cross-platform, detailed learning will be shared in the follow-up blog.

. Net Framework is the implementation of the base class library in the windows operating system, including the Class Library: Database Access (ADO.. NET), XML support, Directory Service (LDAP, etc.), regular expressions and message support, and many application development technologies that are commonly used by our developers: ASP. NET, WinFroms, and WPF.

Common Language specifications

Unfortunately, I do not know this public language specification (CLS), and I can only talk about it.

. Net supports many languages, including C # and VB. Each language must carry its own features, but everyone can run on the CLR through compilation and can perform interoperability with other languages, this is because all languages comply with CLS ;. NET Framework defines CLS as a group of rules, all. NET Language should follow this rule to create applications that can interoperate with other languages, but note that in order to enable interoperation between languages, only the functional objects listed by CLS can be used, these functions are collectively referred to as CLS-compatible functions. I don't know the implementation of the next detail. I will also list this in the future study plan.

Summary

This blog will write about it. The content is mostly in the garden, and I hope to help my friends who want to enter. Net.

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.