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 concept of event bubbling in ASP.NET?

1108


What is the question mark in a url?

959


How to sign out from forms authentication?

1070


Difference between response.redirect and server.transfer?

1037


What is difference between Fragment Caching and Page Caching in ASP.NET?

1020


What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?

900


Explain the asp.net mvc request life cycle? : asp.net mvc

1020


Which object encapsulates state or data of a user?

1070


What is the difference between a cookie and a pixel?

936


What is full form of asp.net?

1019


there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?

3049


Where is the view state data stored?

1005


What is the difference between client-side and server-side validations in ASP.NET?

1182


Which protocol is used in a web api?

1108


What is the difference between custom web user control and a custom web server control?

971