是sa1200所有使用指令必须放在命名空间(了StyleCop)纯化妆品里面呢? [英] Is sa1200 All using directives must be placed inside the namespace (StyleCop) purely cosmetic?

查看:210
本文介绍了是sa1200所有使用指令必须放在命名空间(了StyleCop)纯化妆品里面呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:

应该Usings是内部或空间外面

sa1200所有使用指令必须放在命名空间(了StyleCop)在

sa1200 All using directives must be placed inside the namespace (StyleCop)

这是只是代码可读性或有任何实际的好处这样做?
它是否有助于GC不知何故?

Is this just for code readibility or is there any actual advantage to doing so? Does it help the GC somehow?

推荐答案

这绝对不会与GC帮助。

It definitely won't help with GC.

下面是关于两种风格的讨论:

Here's the discussion about two styles:

http://blogs.msdn.com/abhinaba/archive/2006/08/21/709051.aspx

http://blogs.msdn.com/abhinaba/archive/2008/07/08/do-namespace-using-directives-affect-assembly-loading.aspx

这篇关于是sa1200所有使用指令必须放在命名空间(了StyleCop)纯化妆品里面呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆