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
What is scope of an application variable in asp.net?
What’s the difference between response .redirect and server.transfer?
Who can consume WebAPI?
What are the ways to sending the data in ASP.NET page?
How can we create a website?
What is tracing? Where is it used?
How can we create pie chart in asp.net?
What parameters can you pass in the url of the api?
Is react a template engine?
How does http session work?
What are session state modes?
What is the difference between adding reference in solution explorer and adding references by using ?
What is base class of button control in .net?
What is the use of data set in asp.net?
How many types of controls are there in asp.net?