Answer Posted / kirti
Namespace is a logical naming scheme for group related types.Some class types that logically belong together they can be put into a common namespace. They prevent namespace collisions and they provide scoping. They are imported as "using" in C# or "Imports" in Visual Basic. It seems as if these directives specify a particular assembly, but they don't. A namespace can span multiple assemblies, and an assembly can define multiple namespaces. When the compiler needs the definition for a class type, it tracks through each of the different imported namespaces to the type name and searches each referenced assembly until it is found.
Namespaces can be nested. This is very similar to packages in Java as far as scoping is concerned.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the 2 ways of adding constraints to a route?
Explain peek method in tempdata in asp.net mvc?
What is the difference between model and entity?
Explain Sections is ASP.Net MVC?
sql related question (outer join, left, right etc) array vs hashtable CRL sqldatareader vs dataset what is WPF, WCF, compare to WinForms Webservices Asp.net MVC vs WebForms?
What is difference between razor and web form engine?
What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?
What is the role of the jit compiler in .net framework?
mention what is the difference between ado.net and classic ado?
what is entity framework advantage?
Describe the gac in the .net framework.
What does a viewmodel do?
what is .edmx file and what it contains?
List the new features added in .net framework 4.0.
How do I install .net framework?