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 a global postback url?

948


How many types of Cookies are available in ASP.NET?

1073


Which object encapsulates state or data of a user?

1069


How does exception management works in ASP.NET?

1149


How can you handle exceptions in asp.net?

1045


How can we communicate with each server in N-tier Architecture? and what are the methods?

2233


9. Why should we hire you over the others waiting to be interviewed?

2795


What are uri parameters?

1038


What do you mean by caching in asp.net?

1022


Describe how to implement globalization and localization in the use interface in .net.

959


What are the asp.net security controls?

1166


What is sdlc process?

993


What is difference between web api and web services?

1002


What is custom attribute? How to create?

1076


How to find last error which occurred?

1033