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
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?
What is action methods in web api?
explain what is ado.net entity framework?
will there be any issues adding a table without primary keys to a data model?
What is associationset? : Entity framework
Asp.net mvc application, makes use of settings at 2 places for routing to work correctly. What are these 2 places?
How to make sure Client Validation is enabled in ASP.Net MVC
What is the difference between model view and controller?
How does work clr?
Which are the important namespaces used in mvc?
Explain RenderBody and RenderPage in ASP.Net MVC?
What is .net core framework?
Mention what is the difference between “ActionResult” and “ViewResult” ?
What is asp net framework?
What is the role of the jit compiler in .net framework?