What is Assembly name and name space? Whats the diffrence between the two?

Showing Answers 1 - 7 of 7 Answers

KulaShaker

  • Aug 27th, 2006
 

An assembly is a logical unit of code. Physically it may exist as dll or an exe. which can contain one or more files and they can be any file types like image files, text files etc. along with DLLs or EXEs.When you compile your source code by default the exe/dll which is generated is actually an assemblyand every assembly file contains information about itself which is called as Assembly Manifest.Namespace is an abstract container providing context for the items it holds and allows disambiguation of items having the same name (residing in different namespaces. It can also be said as a context for identifiers. So under a namespace you can have multiple assemblies.

Srinivaasu

  • Nov 14th, 2006
 

Thanks KulaShaker, Assemblies are Physical collections, where as namespaces are logical collections.Namespaces used for the rectifying the naming collisions of the classes (Say reduces the typing work of developers).

  Was this answer useful?  Yes

nagendrasrivastava

  • Mar 16th, 2007
 

Assembly is the basic building block of .NET framework while namespace is a class.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions