how does package avoids class name space collision
Answers
Answered by
1
By "Vertically partitioned", I mean having namespaces named after modules rather than "layers"
So,
MyApp.CoreMyApp.AccountingMyApp.OrderManagementMyApp.HR
instead of,
MyApp.UIMyApp.BusinessMyApp.Data
The only issue I am running into is that sometimes those assemblies might have a part of the namespace that is same as a type name.
Let's say I create an Account related module and I name it MyApp.Account.dll with the base namespace being MyApp.Account. Inevitably, I need to create a class named Account. Then I have to use namespace or type aliases.
hope it helps...
So,
MyApp.CoreMyApp.AccountingMyApp.OrderManagementMyApp.HR
instead of,
MyApp.UIMyApp.BusinessMyApp.Data
The only issue I am running into is that sometimes those assemblies might have a part of the namespace that is same as a type name.
Let's say I create an Account related module and I name it MyApp.Account.dll with the base namespace being MyApp.Account. Inevitably, I need to create a class named Account. Then I have to use namespace or type aliases.
hope it helps...
ilyas1995:
why?
Similar questions