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....
 
Back
Top