Can a .Net namespaces span multiple assemblies?

拈花ヽ惹草 提交于 2019-12-10 10:37:32

问题


Can a .Net namespaces span multiple assemblies? Specific examples would be helpful.


回答1:


Yes.

Eg. System is, some of it is in mscorlib.dll, other parts are in System.dll and System.Core.dll (and, I assume, others).




回答2:


Yes. And this is the right approach to separate different logic parts of your application.

YourApp.Dal - separate assembly with data access layer.

YourApp.Infrastructure - separate assembly with some infrastructure.

YourApp.Web - web part of your application.



来源:https://stackoverflow.com/questions/24904069/can-a-net-namespaces-span-multiple-assemblies

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!