Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2013
    Washington DC
    Thanked 0 Times in 0 Posts

    Difference between Namespace and Assembly?

    I know it is very general question in ASP.net but I am very confuse when I read this in theoretically in book but I am not much better idea how to implements this feature in real web application.
    Please help me and give better understandably description and practical knowledge what is main use and can I make my personal Namespace if yes then How? if you have best resource for better understand then please also share link.

    Nolan Brick
    Last edited by vinyl-junkie; 12-04-2013 at 02:36 PM. Reason: signatures only allowed through the control panel

  2. #2
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Thanked 210 Times in 209 Posts
    Think of it like a book

    an assembly is a reference... think of it as a bibliography
    a namespace is like "the book"
    classes are the pages
    code is the text on the pages (however in this book the pages endlessly scroll, or you could change it and the classes are chapters and then the pages between chapters are code)

    using System.IO;  // this is an assembly reference
    namespace myProject1{
        class exampleClass1{
          //TODO: add code
        class exampleClass2{
        //TODO: add code
    Now the first project can be compiled to an assembly and referenced somewhere else...
    using System.IO;
    using myProject1;
    namespace myProject2{
    /// and so on

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE


Tags for this Thread

Posting Permissions

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