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 mvc entity framework?

0 Answers  


Will there be a .net compact framework 3.0 release with release of .net framework 3.0?

0 Answers  


What platforms does the .NET Framework run on?

1 Answers  


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

0 Answers  


What is ASP.NET MVC?

1 Answers  






What are authentication filters in web api?

0 Answers  


What is the CTS

1 Answers  


What is the use of the default route {resource}.axd/{*pathinfo} ?

0 Answers  


What is entity graph? : Entity framework

0 Answers  


what is the additional features in 1.1 rather than 1.0

1 Answers  


What are the Main Features of .NET platform

1 Answers  


Which filter executes first in an asp.net mvc application?

0 Answers  


Categories