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 difference between Server.Transfer and Response.Redirect in ASP.NET?

0 Answers   Sans Pareil IT Services,


Describe how ASP.NET maintains process isolation for each Web application?

0 Answers   B-Ways TecnoSoft,


How Response.flush works in server.Execute ?

1 Answers   Keane India Ltd, TCS,


How to set/get parent page values in child page in asp.net

3 Answers   Wipro,


What is boxing? How we can use it?

4 Answers   Infosys, NIIT,






Define view state.

0 Answers  


How does the browser enable AutoPostBack functionality?

2 Answers  


Where does Web.Config Info stored? Will this be stored in the registry?

4 Answers   Accenture,


Where you store Connection string in "Web.Config" file in ASP.NET?

0 Answers   Sans Pareil IT Services,


What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?

0 Answers   MindCracker,


What are different types of directives in .NET ?

1 Answers  


What’s the difference between Response.Write() andResponse.Output.Write()?

1 Answers  


Categories