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
How to return the JSON from action method in ASP.Net MVC?
What is viewbag title?
what is linq to entities?
What is Separation of Concerns in ASP.NET ASP.Net MVC?
Which filter executes first in an asp.net mvc application?
Why is the .net framework 3.0 a major version number of the .net framework if it uses the .net framework 2.0 runtime and compiler?
Can I use razor code in javascript in asp.net mvc?
What are sections?
Do you know about the new features in ASP.Net MVC 4 ?
how do you mark a property as required? For example, for a project, the name is a required field.
What is layout in mvc?
How can I tell what .net framework is installed?
Is entity framework slow?
Briefly describe the roles of clr in .net framework?
How does servicing work for the .net framework 3.0? If I install the .net framework 3.0, can I get service updates for the .net framework 2.0?