Any alternative to avoid name collisions other then Namespaces?



Any alternative to avoid name collisions other then Namespaces?..

Answer / 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

More ASP.NET Interview Questions

What is the postback property in asp.net?

0 Answers  


What are validator? Name the Validation controls in asp.net? How do u disable them?

2 Answers  


What I need to create and run an asp.net application?

0 Answers  


Please brief not about xsd,xslt & xml?

0 Answers  


how to retrieve property settings from xml .config file.

0 Answers  






Where would you use an ihttpmodule, and what are the limitations of any?

0 Answers  


what are the application layers for a distribute application?

0 Answers   Mind Tree,


If we remove web.config or machine.config from the application then, is this application will works?

0 Answers  


Define static member?

0 Answers  


Which method do you invoke on the DataAdapter control to load your generated dataset with data?

2 Answers  


What is directive in asp net?

0 Answers  


I am trying to redirect another site on button click.

8 Answers  


Categories