Computer Science, asked by thakurprashant2211, 11 months ago

how does package avoids class name space collision

Answers

Answered by sakshigoyal1119
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...

ilyas1995: why?
sakshigoyal1119: what why
sakshigoyal1119: how can i make a bro if i dont know u
ilyas1995: so what i call you dear?
sakshigoyal1119: sakshi
ilyas1995: Sakshi if you don't mind can we begin conversation?
ilyas1995: in inbox
sakshigoyal1119: ok fine
ilyas1995: inbox me
ilyas1995: ?..........
Similar questions