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 base class of .net?

0 Answers  


I create small website, i want accept all the browser this website? what will do?

1 Answers  


Explain significance of routing? : asp.net mvc

0 Answers  


What is ashx file in asp.net?

0 Answers  


can we call web service from the browser?

2 Answers   Keane India Ltd,


What is the default authentication mode for asp.net?

0 Answers  


How to Convert a String into Float without using any built- in library of .NET String = "1235.45" needs to converted to a float

2 Answers   CA, Microsoft,


Define msil.

0 Answers  


What are sessions in asp net?

0 Answers  


What is an il?

0 Answers  


What does WSDL stand for?

10 Answers   Siebel Systems,


How to write unmanaged code and how to identify whether the code is managed /unmanaged?

4 Answers   Accenture,


Categories