Best Practices - namespaces

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I'm building a website in ASP.NET. I will have a default.aspx file in each directory and sub-directory of the site. What is the best / accepted way of avoiding class naming conflicts by using Namespaces. I read somewhere that each directory should have it's own namespace, but that doesn't seem right to me....
thanks
 
I your app has the name Foo, your company has the name Bar then a classfile
in the dir \Fun\Fancy\ should have the namespace "Bar.Foo.Fun.Fancy".
This is common practice and folloved by most most companies.

--
cody

Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk
Dave said:
Hi,
I'm building a website in ASP.NET. I will have a default.aspx file in each
directory and sub-directory of the site. What is the best / accepted way of
avoiding class naming conflicts by using Namespaces. I read somewhere that
each directory should have it's own namespace, but that doesn't seem right
to me....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top