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 Create an Intranet Site Using ASP.NET MVC?
Is mvc 4 supporting windows azure sdk (software development kit) ?
Will c# 3.0, vb.net 9.0, atlas, or linq be included in the .net framework 3.0?
Which .net framework is installed?
what is eager loading?
What is entity sql? : Entity framework
Define the core components of an ASP.NET MVC application?
Explain Model, view and Controllers in Asp.Net MVC?
What is the difference between viewbag and viewdata in mvc?
Name a few different return types of a controller action method?
What filters are executed in the end?
What is viewstart page in mvc?
What is stateless model?
What is oauth in web api?
What is work of clr?