Difference between Assembly and Namespace
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Difference between Assembly and Namespace

  1. #1
    Join Date
    Jun 2004
    Posts
    6

    Difference between Assembly and Namespace

    Hi,
    Could anyone tell me difference between Assembly and Namespace in .NET

  2. #2
    Join Date
    Dec 2003
    Location
    Republic of Ireland
    Posts
    383
    Assembly is a piece of code (IL) that can be executed by .NET Framework.
    Namespaces are designed to solve naming problems. You can have, for example, two different classes with the same name. Placeing them in different namespaces can solve the problem.

  3. #3
    Join Date
    Sep 2006
    Location
    India
    Posts
    1

    Re: Difference between Assembly and Namespace

    hi Mr. Kaushik

    Namespace: It is a Collection of names wherein each name is Unique.
    They form the logical boundary for a Group of classes.
    Namespace must be specified in Project-Properties.

    Assembly: It is an Output Unit. It is a unit of Deployment & a unit of versioning. Assemblies contain MSIL code.
    Assemblies are Self-Describing. [e.g. metadata,manifest]
    An assembly is the primary building block of a .NET Framework application. It is a collection of functionality that is built, versioned, and deployed as a single implementation unit (as one or more files). All managed types and resources are marked either as accessible only within their implementation unit, or by code outside that unit.

    Hope this helps!!!!!

    Cheers.......
    Last edited by Pawan.Singh; September 15th, 2006 at 12:08 PM.

  4. #4
    Join Date
    Feb 2005
    Location
    Israel
    Posts
    1,475

    Re: Difference between Assembly and Namespace

    I want to try too

    Assembly: A managed dll or exe (built by .NET)
    Namespace: A group of managed types (classes, enums, structs, etc).

    One assembly can contain several namespaces.
    One namespace can contain types from different assemblies.

    The name of the namespace is not necessarily the name of the assembly.

  5. #5
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Difference between Assembly and Namespace

    I will also try :d

    Namespace
    .NET Assemblies

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center