如何.NET框架工程框架、工程、NET

2023-09-06 23:01:52 作者:脾气古怪无人爱

大家好,我一直在一个项目中,我的老师之一,希望我解释如何.NET框架的工作。

Guys, I've been working in a project and one of my teacher wants me to explain how .net Framework works.

我写的,我们可以使用.NET框架code把它用在其他语言,我需要解释原因。你能帮助我吗?

I wrote that we can use .net framework code to use it in other languages and I need to explain why. Can you help me?

推荐答案

.NET语言(C#,VB.net,许多其他的)编译成.NET字节code,然后将其除preTED由通用语言运行时(CLR),这是虚拟机。这是简单的答案。

.NET languages (C#, VB.net, many others) compile to .NET bytecode, which is then interpreted by Common language runtime (CLR), which is a virtual machine. That's the short answer.

目前在约CLR 维基百科的文章,说明了如何源$ C ​​$ C被转换为本地code。

There is a nice image on Wikipedia article about CLR that illustrates how source code gets transformed to native code.

.NET字节code包含类,方法,以及其它信息,可用于由基于.NET等语言的信息。

.NET bytecode contains information about classes, methods, and other info that can be used by other languages that are based on .NET.

一个有用的工具来测试,这是 .NET反射,它可以是使用逆向工程.NET字节code,并把它转换成C#或Visual Basic code。

A useful utility to test this is the .NET reflector, which can be used to reverse engineer .NET bytecode and turn it into C# or Visual Basic code.

有关详细信息,搜索网络的CLR,你会发现很多的资源。

For more details, search the net for CLR and you'll find plenty of resources.