[英]How can I add a namespace in C# Express 2008?
Right now everything falls in this namespace: 现在,所有内容都属于此命名空间:
XXX.YYY.(varies) XXX.YYY。(可变)
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.
该部分工作正常,但出于组织原因,我需要在YYY之后添加另一个名称空间。 So every single class will read XXX.YYY.ZZZ.(varies) How can I do that?
所以每个班级都会读XXX.YYY.ZZZ。(可变)我该怎么做?
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) (每个文件通常通常只有一个类/ etc)
If you are moving all of them, then find+replace may help ( ctrl + h ) 如果要移动所有这些,然后找到+取代可以帮助(Ctrl + H 键 )
You should also be able to use the "class view" to help track them: View => Class View, or ctrl + w , c 您还应该能够使用“类视图”来帮助跟踪它们:View => Class View,或ctrl + w , c
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.