Sadi02’s Weblog

May 29, 2008

Difference between Namespace and Assembly in C# .Net

Filed under: Computer Science — Tags: , , — Md. Shaik Sadi @ 7:58 am

Assembly will contain Namespaces, Classes, Data types it’s a small unit of code for deployment. Assembly defines the name of the .dll file.
Namespace is used in order to avoid conflict of user defined classes

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

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

6 Comments »

  1. Realy Good post..Sadi.

    Comment by Pothik — May 29, 2008 @ 8:10 am

  2. thanks pothik…
    I will try my best to support you all guys

    Comment by sadi02 — May 29, 2008 @ 8:25 am

  3. Namespace is described well by your post. But could you please elaborate the Assembly part a bit? Terms like MISL, metadata, manifest seem hazy to me. Make me a little clear.

    Comment by shiman — May 29, 2008 @ 9:34 am

  4. I want to make sense a little bit about namespace and assembly. For further learning you have to browse net or take higher study..But don’t worry I will try to clear that terms. Thanks for comment..:D

    Comment by sadi02 — May 29, 2008 @ 9:49 am

  5. Really good article
    thanks.

    Comment by Thakur — September 22, 2008 @ 6:48 am

  6. Nice one

    Thanks.

    Comment by Radha — February 20, 2009 @ 9:28 am


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.