Difference between namespace and assembly
Namespace
- In .net programming language namespace provide the logical grouping of code.
- The namespace avoid the conflict of user-defined classes.
- It is a Collection of names where each name is Unique in the whole project.
Assembly- It provides the physical grouping of code.
- An assembly can contain multiple namespaces .
- Assemblies contain MSIL (Microsoft Intermediate Language) code.
- Assembly defines the name of the .dll extension file. It also used to avoid dll hell problem.
- Assemblies are Self-Describing. [E.g. metadata, manifest]
- It is the primary building block of a .NET Framework application.