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 concept of event bubbling in ASP.NET?
What is the question mark in a url?
How to sign out from forms authentication?
Difference between response.redirect and server.transfer?
What is difference between Fragment Caching and Page Caching in ASP.NET?
What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?
Explain the asp.net mvc request life cycle? : asp.net mvc
Which object encapsulates state or data of a user?
What is the difference between a cookie and a pixel?
What is full form of asp.net?
there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?
Where is the view state data stored?
What is the difference between client-side and server-side validations in ASP.NET?
Which protocol is used in a web api?
What is the difference between custom web user control and a custom web server control?