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
Explain the basic functionality of garbage collector?
Explain the difference between Web Garden and Web Farm?
Is razor a programming language?
What is difference between mvc and asp.net? : Asp.Net MVC
How can we use Web API with ASP.NET Web Form?
What is session in asp.net?
Why we use content place holder in asp.net?
What is a proxy in web service?
What are the types of validation in asp net?
What are sql notifications and sql invalidations?
What are the various types of validation controls provided by asp.net?
Can you explain one critical mapping?
What's the use of formatters in .net?
Does web services support data reader like pom project?
What is the appSettings Section in the web.config file?