.NET的哪一部分与操作系统通信? [英] Which part of .NET Communicates with operating system?.

查看:70
本文介绍了.NET的哪一部分与操作系统通信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我一直在学习.NET的库,因此我需要知道与操作系统通信的确切库,如果有人帮助我的话非常感谢我,提前谢谢。

Hi all,

I have been learning .NET by it's libraries hence i need to know the exact library that communicates with operating system if somebody help me would be greatful for me, thanks in advance.

推荐答案

这是 CLR 。更多信息,请访问维基百科 [ ^ ]。
It is the CLR. More info at Wikipedia[^].


嗯...几乎所有这些......



这在很多方面都是一个无意义的问题。是的,.NET是作为一组库实现的,但它是一个框架 - 它充当OS(或更具体地说是OS API库)与您编写的C#或VB代码之间的层。没有一个特定的位进行通信,因为(例如)控制对象以许多不同的方式进行交互:例如处理和发送窗口消息,以及调用OS库函数来执行特定任务。其他类以不同的方式与不同的位进行交互。



并且应用程序不必通过.NET程序集来执行它 - 您可以使用DLLImport来直接访问.NET所执行的相同API函数。



没有.NET程序集是唯一的通信接口。
Um...pretty much all of it...

That's a "nonsense question" in a lot of ways. Yes, .NET is implemented as a set of libraries, but it's a Framework - it acts as a layer between the OS (or more specifically the OS API libraries) and the C# or VB code that you write. There is no one specific "bit" that communicates, because (for example) Control objects interact in many different ways : processing and sending windows messages for example, and calling OS libraries functions to perform specific tasks. And other classes interact with different bits in different ways.

And an application doesn't have to go via the .NET assemblies to do it - you can use DLLImport to directly access the same API functions that .NET does.

The is no .NET assembly that is the only communication interface.


这篇关于.NET的哪一部分与操作系统通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆