问题
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