Just to add to the excellent descriptions from other responders:
For your first namespace, use something like "MyCompany.MyApplication". Use
the same namespace for all your classes (including the forms).
Then, you are unlikely to need to care again.
If you create a DLL, and your app calls that DLL, you will want to use a
namespace naming convention that you will find useful.
Like "MyCompany.Library.SubjectArea" (e.g. if your company is called
CoolCoders and you are writing a DLL dealing with Graphics manipulation,
then something like: CoolCoders.Library.Graphics )
Then, to use it in your application, set a reference to the DLL that
contains the classes you want and put a "using" statement (if you use C#) or
an imports statement (if you use VB) in each file where you want to
reference the classes.
Also note: you can have as many namespaces declared in a single DLL as you
want. In fact, you can have more than one namespace declared in a single
file. It's up to you.
Good Luck,
--- Nick
"Rob G" <gu*******@hotmail.com> wrote in message
news:10*************@corp.supernews.com...
Hi,
I am having a problem finding a good explanation of exactly how Namespace
works. I am not clear on how it uses directories (if it does at all),
contains classes, after I complile a cs file how does a Namespace come
into play, or do I even need to have one?
Any info would be greatly appreciated.
Thanks so much.
-Rob