How can I automatically refactor my classes to use the default namespace for the folder they're in?

Posted by Daniel Schaffer on Stack Overflow See other posts from Stack Overflow or by Daniel Schaffer
Published on 2011-01-02T22:07:31Z Indexed on 2011/01/02 22:53 UTC
Read the original article Hit count: 108

I've been playing around with the structure of my project, and I'd like to reset the namespaces of my classes to what the default would be. That is, the default namespace for the project, plus each of the folders in the hierarchy.

It's not as simple as just find + replace, since I've both added and renamed some folders, and files from some namespaces were split into multiple other namespaces. I'm using VS 2010.

© Stack Overflow or respective owner

Related posts about visual-studio-2010

Related posts about refactoring