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

I need to download file from web server, without using save as dialogue box. Can anyone help, thanks In advance.

1 Answers  


What is the difference between asp.net and mvc?

0 Answers  


How do you identify that the page is postback?

0 Answers  


Explain server-side scripting and client-side scripting.

0 Answers  


Which is faster union or union all?

0 Answers  






What is application in asp net?

0 Answers  


What is role manager work in web.config? how to restrict perticular pages from the users using the role manager?

1 Answers   Infosys,


To get the values in two different controls to match which control you use it?

0 Answers   Siebel,


what is reference type to value type.

3 Answers   AG Technologies,


What data type does the RangeValidator control support?

3 Answers   Visual Soft,


What are the new navigation controls in asp.net 2.0?

0 Answers  


what is state management,what is the purpose of it,how it will be implemented in real time?

2 Answers  


Categories