Is sa1200 All using directives must be placed inside the namespace (StyleCop) purely cosmetic? [duplicate]

我们两清 提交于 2019-11-29 05:34:06

If you have multiple namespaces in your project, you can limit which namespaces are used by each one individually.

This might come in handy if there were class names in two different namespaces that were the same. One might be the default in one part of your project, while the other could be the default in another.

Yes they look for some really fringe cases for these rules.

There is no runtime difference. It's purely a compile time (and development experience) change. The file, compiled IL will be identical in either case.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!