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 scope of an application variable in asp.net?

486


What’s the difference between response .redirect and server.transfer?

507


Who can consume WebAPI?

580


What are the ways to sending the data in ASP.NET page?

556


How can we create a website?

529






What is tracing? Where is it used?

547


How can we create pie chart in asp.net?

574


What parameters can you pass in the url of the api?

653


Is react a template engine?

510


How does http session work?

513


What are session state modes?

557


What is the difference between adding reference in solution explorer and adding references by using ?

566


What is base class of button control in .net?

514


What is the use of data set in asp.net?

478


How many types of controls are there in asp.net?

517