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
What is a global postback url?
How many types of Cookies are available in ASP.NET?
Which object encapsulates state or data of a user?
How does exception management works in ASP.NET?
How can you handle exceptions in asp.net?
How can we communicate with each server in N-tier Architecture? and what are the methods?
9. Why should we hire you over the others waiting to be interviewed?
What are uri parameters?
What do you mean by caching in asp.net?
Describe how to implement globalization and localization in the use interface in .net.
What are the asp.net security controls?
What is sdlc process?
What is difference between web api and web services?
What is custom attribute? How to create?
How to find last error which occurred?