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 the concept of postback in asp.net?
What is an assembly? Explain its parts.
Explain about consistent programming model in the .NET framework?
Describe paging in asp.net?
What is Dynamic Web and discuss its usage with the help of real life examples?
what are the web form events available in asp.net?
What are the advantages of asp.net mvc framework? : asp.net mvc
Explain the main function of razor in asp.net? : asp.net mvc
Differentiate between Server.Transfer and Response.Redirect with functionality? Why we can choose one over the other?
What is the difference between a page theme and a global theme?
How do we implement bundling in MVC?
How do you secure your connection string information?
Which method do you use to kill explicitly a users session?
What is a query string in a url?
What is the asp.net control toolkit?