What is namespaces



What is namespaces..

Answer / 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

More Dot Net Framework Interview Questions

What is the version number for the next version of the .net framework, codenamed �orcas�?

0 Answers  


What is separation of concerns in asp.net mvc?

0 Answers  


Does windows 10 need .net framework?

0 Answers  


How to make sure Client Validation is enabled in ASP.Net MVC

0 Answers   B-Ways TecnoSoft,


What is stateless model?

0 Answers  


How can I return string result from action in asp.net mvc?

0 Answers  


Explain what is the difference between view and partial view?

0 Answers  


How we can call a JavaScript function on the change of a Dropdown List in ASP.Net MVC?

0 Answers  


Possible ways to prevent xss attacks on mvc application?

0 Answers  


How is method overriding different from method overloading

1 Answers   Siebel Systems,


What is associationset? : Entity framework

0 Answers  


What is managed extensibility framework?

0 Answers  


Categories