Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 163743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:37:14+00:00 2026-05-11T11:37:14+00:00

One can often see class names carrying a reference to the namespace to which

  • 0

One can often see class names carrying a reference to the namespace to which they belong. One of the most popular examples is the .NET ‘Xml’ namespace where every single class defined in it is prefixed with the ‘Xml’ tag.

This has always seemed pretty redundant to me, but recently I’ve realized that in some cases it could be useful… but still redundant.

I’d like to know how people actually deal with this issue.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T11:37:15+00:00Added an answer on May 11, 2026 at 11:37 am

    I take the ‘when it is appropriate’ approach. The idea is that you want to name your classes using the name that makes the most sense. In some cases it does mean that the class name is somewhat redundant with the namespace, but keep in mind that the namespaces aren’t generally seen as part of the class name in the code other than as part of a using directive.

    The namespaces are used to logically group related classes, etc. together to help the developer find the correct classes and help minimize the chance of name collisions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If one can prevent subclassing by declaring private constructor in the base class, why
I know that one can define an 'expected' exception in JUnit, doing: @Test(expect=MyException.class) public
I often see questions like this one and there are multiple solutions. I'm trying
I often see it mentioned that Thread.Sleep(); should not be used, but I can't
I'm not really sure how to express this, but one pattern I often see
I'm not sure what they call the fake shortcuts you often see in Windows
One noob question. I often see those kind of things: public Constructor(Game game, string
One can remove all calls to printf() using #define printf . What if I
One can create an anonymous object that is initialized through constructor parameters, such as
One can tag files and folders with a color in the Mac OS X

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.