C#和Net框架的关系(C#图解教程第一章)
Illustrated C# Chapter 1
1.Net框架:
In 2002, Microsoft released the first version of the .NET Framework, which promised to address the old
problems and meet the goals for the next-generation systems. The .NET Framework is a much more
consistent and object-oriented environment than either the MFC or COM programming technologies. Some
of its features include the following:
• Multiple platforms: The system runs on a broad range of computers, from servers
and desktop machines to PDAs and cell phones.
• Industry standards: The system uses industry-standard communication protocols,
such as XML, HTTP, SOAP, JSON, and WSDL.
•
Security: The system can provide a much safer execution environment, even in the
presence of code obtained from suspect sources.
The .NET Framework consists of three components, 【Net有三部分组成:如下图1-2】
Programming Tools: 编译器 Complier
BCL:比较底层和通用的功能。System, IO,Resource,Text,Collection,
2.text语言到CIL的过程:
The compiler for a .NET language takes a source code file and produces an output file called an assembly 【文本代码生成程序集】.
Figure 1-3 illustrates the process.
• An assembly is either an executable or a DLL. 【可执行的或者DLL】
•The code in an assembly isn’t native machine code but an intermediate language called the Common Intermediate Language (CIL).【程序集是CIL中间语言】
• An assembly, among other things, contains the following items:
– The program’s CIL 【CIL】
– Metadata about the types used in the program 【使用的Type】
– Metadata about references to other assemblies 【reference关系】
3.CIL编译到Native Code的过程:
4.Net平台下各个语言编译和执行过程的一致性:
5.CLR内部的操作:
6.比较重要的缩写:
7.C#的演进
标签:
C#笔记
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!