开发者

How can I add a namespace in C# Express 2008?

Right now everything falls in this namespace:

XXX.YYY.(varies)

It's an open source project and I开发者_开发问答'm refactoring it to suit our needs. That part works fine, but I need to add another namespace after YYY for organizational reasons. So every single class will read XXX.YYY.ZZZ.(varies) How can I do that?


In your code file, just change it:

namespace XXX.YYY.ZZZ
{
    /* your types that go in that namespace */
}

(typically still only one class / etc per file)

If you are moving all of them, then find+replace may help (ctrl+h)

You should also be able to use the "class view" to help track them: View => Class View, or ctrl+w,c

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜