Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Any alternative to avoid name collisions other then Namespaces?

Answer Posted / p.ramakrishna

A scenario that two namespaces named N1 and N2 are there
both having the same class say A. now in another class i ve
written
using N1;using N2;
and i am instantiating class A in this class. Then how will
u avoid name collisions?
Ans: using alias
Eg: using MyAlias = MyCompany.Proj.Nested;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the concept of postback in asp.net?

1025


What is an assembly? Explain its parts.

1058


Explain about consistent programming model in the .NET framework?

1078


Describe paging in asp.net?

1138


What is Dynamic Web and discuss its usage with the help of real life examples?

1033


what are the web form events available in asp.net?

1026


What are the advantages of asp.net mvc framework? : asp.net mvc

1009


Explain the main function of razor in asp.net? : asp.net mvc

1068


Differentiate between Server.Transfer and Response.Redirect with functionality? Why we can choose one over the other?

1161


What is the difference between a page theme and a global theme?

980


How do we implement bundling in MVC?

1076


How do you secure your connection string information?

967


Which method do you use to kill explicitly a users session?

1039


What is a query string in a url?

968


What is the asp.net control toolkit?

1060