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 9048831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:14:54+00:00 2026-06-16T12:14:54+00:00

What does this answer to another question mean? Yes, creating a nested namespace is

  • 0

What does this answer to another question mean?

Yes, creating a nested namespace is possible. However, I believe the
preferred methodology for something like this would be to create a
resource file

This gives you the added benefit of being able to change without a
code change, as well as to support multiple languages.

I am making a few namespaces and I want them to be all under one namespace (MyNamespace), but I don’t feel like going and changing all the code to add nested interfaces, and naming them MyNamespace.N1 is not very compatible with intelli-sense.

Edit: My main problem is that namespace MyNamespace.N1 { } does not seem to work right with renames and stuff like that. Is it even a true nested namespace declaration?

Underlying Question: A namespace declaration with a period in it is two namespaces. Why, then, when I rename it, does it not act right with the rename. My question may be vague, but I have such a problem with it that I thought for sure a lot of other people would have run into it. If not, then just close it and I’ll try to figure it out some other way.


I’m trying to figure out how to put all the namespaces in a project under one namespace. So you would access them using MyProject.MyN1.MyClass. If I declare the namespace like namespace MyProject.MyN1 { } and then try to rename it, the intelli-sense only looks at “MyProject” as the namespace, MyN1 is peripheral. But I’m really trying to rename “MyN1” and it doesn’t like doing that.

Well, I tried that, and now I’m not sure what my problem was in the first place. As I described it it works fine. I think it was that if I try to add or remove a period in the namespace declaration it doesn’t rename it right.

  • 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. Editorial Team
    Editorial Team
    2026-06-16T12:14:55+00:00Added an answer on June 16, 2026 at 12:14 pm

    One way that would probably work is to using a global find and replace. What your actually trying to do is to rename two namespaces into one, and it’s not going to let you.

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

Sidebar

Related Questions

The manual does not answer this question : it says the name of the
I read this question but the answer does not perform a refactoring of the
This question is spawned from the partial answer to JSF2: why does empty test
This question is similar to mine, but does not contain an answer. I want
It seems like I read another question / answer on this site about this
According to this answer on another question, the Collapsed event of a ContextMenu is
Related to this question and this answer (to another question) I am still unable
I have a question very similar to this one but the answer does not
This is a bit esoteric, but maddening. In an answer to another question ,
Update : I just stumbled upon this in Eric Lippert's answer to another question

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.