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

Explain the basic functionality of garbage collector?

1036


Explain the difference between Web Garden and Web Farm?

1054


Is razor a programming language?

1062


What is difference between mvc and asp.net? : Asp.Net MVC

1277


How can we use Web API with ASP.NET Web Form?

1154


What is session in asp.net?

1007


Why we use content place holder in asp.net?

1091


What is a proxy in web service?

1111


What are the types of validation in asp net?

1087


What are sql notifications and sql invalidations?

992


What are the various types of validation controls provided by asp.net?

1020


Can you explain one critical mapping?

1048


What's the use of formatters in .net?

1093


Does web services support data reader like pom project?

988


What is the appSettings Section in the web.config file?

1136