简体   繁体   English

可以在我当前的网站上添加命名空间,是否可以提高性能或灵活性?

[英]Can Adding Namespace to my current website, will give me any performance or flexibility Gain?

We have quite Large Web Based System, which is recently converted from Website to WebApplication, when it was an Website we not have any classes marked under the standard MyCompany.UI Namespace, now I am planning to move all the classes under the namespace, will I gain anything with doing that? 我们有一个相当大的基于Web的系统,该系统最近已从网站转换为WebApplication,当它是一个网站时,我们没有在标准MyCompany.UI命名空间下标记的任何类,现在我打算将所有类移至该命名空间下,我这样做有收获吗?

Thanks, Manoj 谢谢,Manoj

Using namespaces will (should) help you organize your code and separate your code from other people's stuff without having to create elaborate complicated class names. 使用命名空间将(应该)帮助您组织代码并将代码与其他人分开,而无需创建复杂的类名。 Namespaces will not provide you with any performance advantages - the computer has to do the same work regardless of what the class is called. 命名空间不会为您提供任何性能优势-不管调用什么类,计算机都必须执行相同的工作。

Using namespaces won't improve your code's performance. 使用名称空间不会提高代码的性能。 They just help organize your code into sections. 它们只是帮助将代码组织成几个部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM