C#中使用namespace语句排序 [英] c# using namespace statement ordering
本文介绍了C#中使用namespace语句排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想我读的地方,你使用的语句,并摆脱未使用的有一些什么样的性能效益订购...但我似乎无法找到任何证据或资源来支持......有没有道理这样做呢?
I thought I read somewhere that ordering your using statements and getting rid of unused ones had some kind of performance benefit...but I can't seem to find any evidence or resources to support that...is there any truth to this?
推荐答案
从的 MSDN
,
使用名称空间指示的 同一编译单元或命名空间 身体不互相影响,并能 用任何顺序
using-namespace-directives in the same compilation unit or namespace body do not affect each other and can be written in any order.
非常多<一href="http://stackoverflow.com/questions/2026466/c-using-namespace-directive-in-nested-namespaces"><$c$c>useful链接 你想参观。
Very much useful link
you would like to visit.
这篇关于C#中使用namespace语句排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文