Should 'using' directives be inside or outside the namespace?

前端 未结 12 1378
长情又很酷
长情又很酷 2020-11-21 22:41

I have been running StyleCop over some C# code, and it keeps reporting that my using directives should be inside the namespace.

Is there a technical rea

12条回答
  •  日久生厌
    2020-11-21 23:08

    According to Hanselman - Using Directive and Assembly Loading... and other such articles there is technically no difference.

    My preference is to put them outside of namespaces.

提交回复
热议问题