Best Practices - namespaces

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave

    #1

    Best Practices - namespaces

    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
    --
    /dave
  • cody

    #2
    Re: Best Practices - namespaces

    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.Fa ncy".
    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" <Dave@discussio ns.microsoft.co m> schrieb im Newsbeitrag
    news:EC553BC5-F1EE-4135-B174-AB935A246E0A@mi crosoft.com...[color=blue]
    > Hi,
    > I'm building a website in ASP.NET. I will have a default.aspx file in each[/color]
    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....[color=blue]
    > thanks
    > --
    > /dave[/color]


    Comment

    Working...