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 different types of Caching techniques in ASP.NET?
What do you mean by serialize and marshalbyref?
What are the advantages and disadvantages of session?
Do you know about caching with the datasource controls?
Is session server side or client side?
What is the use of worker process in asp.net?
How can we register exception filter from the action?
What is the difference between union and join?
How response object is related to asp's response object?
What are all the various Estimation Techniques available ?
Explain serialization and deserialization?
Explain how asp.net different from asp?
What are the authentication types in asp.net?
What is autopostback true?
What are validator? Name the validation controls in asp.net? How do you disable them? Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?