.Net中有多少个类可以包含一个dll库? [英] How many classes can contain a single dll library in .Net?

查看:56
本文介绍了.Net中有多少个类可以包含一个dll库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请给我您宝贵的答案,感谢您的答复.

Please give me your valuable answer and thanks for respond to me.

推荐答案

没有这种限制.

库并不意味着DLL.本质上,在.NET中,DLL,EXE等之间没有非常根本的区别.中心概念是 assembly . DLL或EXE是可执行模块.在一个程序集中可以有一个以上的模块(不要将模块与引用的程序集混在一起),但是Visual Studio仅支持单模式程序集.它产生一种幻觉,认为某些EXE或DLL文件是程序集.它不是.它是代表整个程序集的单个可执行模块.使用原始编译器,每个程序集中可以有一个以上的模块.

现在,任何程序集(包括由EXE文件,应用程序程序集组成的程序集)都可以引用为常规类库.班数不限.

—SA
There is no such limitation.

And a library does not mean DLL. Essentially, in .NET there are no very fundamental distinction between DLLs, EXEs, etc. The central notion is the assembly. And DLLs or EXEs are the executable modules. There could be more then one module in one assembly (don''t mix up modules with referenced assemblies), but Visual Studio only support single-mode assemblies. It creates an illusions that some EXE or DLL file is an assembly. It is not. It is a single executable module representing a whole assembly. Using raw compilers, you can have more then one module per assembly.

Now, any assembly (including those consisting of an EXE file, application assemblies) can be referenced as a normal class library. Number of classes is unlimited.

—SA


这篇关于.Net中有多少个类可以包含一个dll库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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