1) You have 2 referance dll's DAL1 and DAL2
2)Both Carry a same namespace DAL and a class Customers and one method GetNames
3)Now both thease DAL's are referanced in in one application and you want to access both the methods seperately what you will do??
Ok, there is a solution
called as extern alias namespace
Key : After giving referance right click the referred dll and go to properties there you can see on property Aliases, give two different aliases for DAL1 and DAL2
and see below

now u see two namespaces cls1 and cls2 are defined using aliases, now you are ready to use both the methods from same namespace and same Classname.
0 comments:
Post a Comment