What is the difference between namespace and assembly?

Asked 14-Nov-2017
Viewed 595 times

1

What is the difference between namespace and assembly?


    1 Answer


    0

    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.