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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:41:03+00:00 2026-05-30T19:41:03+00:00

Not sure how to phrase this question, but here is the problem. I have

  • 0

Not sure how to phrase this question, but here is the problem.

I have a namespace designed: my.foo.bar

In one of my classes, I accidentally named the namespace my.foo.Bar

I want to fix the namespace capitalization so that everyone is on the same page, but this is a shared library, and I can’t afford to recompile all programs using this.

So, is there something I can create that, in essence, redirects my.foo.Bar to my.foo.bar?

  • 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-05-30T19:41:04+00:00Added an answer on May 30, 2026 at 7:41 pm

    Not globally. You can use namespace aliases, but only in the client code. It sounds like you might need to take a breaking change.

    One way of doing it, if it is only one or two classes, would be to copy them from my.foo.Bar to my.foo.bar, deprecate the ones in the bad namespace using the Obsolete attribute, and slowly move clients over to the correct ones.

    If the class is stateless, then the class in the my.foo.Bar namespace could delegate to the one in the my.foo.bar namespace as @JohnSaunders suggests, but only if client’s usage of that class doesn’t preclude delegation (everything is a method or a property, that class’s Type isn’t used via reflection, etc).

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

Sidebar

Related Questions

First, this question may have been asked before, but I'm not sure what phrase
I'm not sure exactly how to phrase this, but here goes: I have a
Not quite sure how to phrase this, but will do my best. I have
I'm not quite sure how to phrase this question, but I couldn't find any
Not sure how to phrase this question exactly, but I'll give it a shot.
I'm not even sure how I should phrase this question. I'm passing some CustomStruct
I am not sure how to phrase my question properly but I want to
Not really sure how to phrase this question so it's generic enough. (and will
I think the title for this question is probably wrong, but I'm not sure
Not entirely sure how to phrase the question, because it's a why doesn't this

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.