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

Can I uninstall microsoft .net framework?

0 Answers  


Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).

0 Answers  


why DotNetFramework is included in building a software

0 Answers   Infosys, Symphony,


What is difference between razor and web form engine?

0 Answers  


What is storage model? : Entity framework

0 Answers  






Which is the best institute in hyderabad to learn DotNet?

152 Answers   Cygnet Infotech, Infosys, Student, SVIT, TCS,


How do you box a primitive data type variable ?

1 Answers  


what happened when type url in address bar and press enter?

5 Answers   IBM, Wipro,


Asp.net mvc application, makes use of settings at 2 places for routing to work correctly. What are these 2 places?

0 Answers  


What are the 2 ways of adding constraints to a route?

0 Answers  


How we can register the Area in ASP.Net MVC?

0 Answers  


how do you query in entity model when the result has a join from from different database other than the entity model?

0 Answers   Microsoft,


Categories