Q:

Using Namespaces

I have a "Web Project" in VS.
File structure
- AdminCms
  - Sections
    - CmsAuthors
- App_Code
  - Business Logics
    - Common
       - BuilderStrings.cs
    - DataAccess
      -CmsModel.edmx

When I Build the Project VS in BIN Create a Cms.dll file.
In file "BuilderStrings.cs" I use:
namespace Cms.App_Code.BusinessLogics.Common

Using this code from folder "CmsAuthors"
using Cms.App_Code.BusinessLogics.Common;

As so far all is working fine.
Now for my understanding I should be able to name the namespace as I want ex:
namescape Wdg.Cms.Common

so if I use:
using Wdg.Cms.Common;

Script should be work just fine. Instead I get an error "Missing Assembly Reference".

What is wrong?
It is namespae a sort of path how to retrieve the Class?
Why I cannot use a different name?

Thanks guys for you help!

A:

It is perfectly fine. Have you saved and rebuild your project? 
** I did get the error for the first time as I didn't save my changes in app_code.

Nothing wrong here.
The main purpose of having namespace is to avoid class name collision. For example, you have StringBuilder.cs in App_Code/Admin and App_Code/Common, you can differentiate them by using name space: Wdg.Cms.Common.StringBuilder and Wdg.Cms.Admin.StringBuilder
You can use a different name.

