问题:
I have been running StyleCop over some C# code, and it keeps reporting that my using
directives should be inside the namespace. 我一直在通过某些C#代码运行StyleCop ,并且一直在报告我的using
指令应该在名称空间内。
Is there a technical reason for putting the using
directives inside instead of outside the namespace? 是否有技术上的理由将using
指令放在名称空间的内部而不是外部?
解决方案:
参考一: https://stackoom.com/question/WbH/using-指令应该在名称空间之内还是之外参考二: https://oldbug.net/q/WbH/Should-using-directives-be-inside-or-outside-the-namespace
来源:oschina
链接:https://my.oschina.net/u/4438370/blog/4299035