C# using directive is unnecessary

原因:

There are a few reasons you'd want to take them out.

It's pointless. They add no value.

It's confusing. What is being used from that namespace?

If you don't, then you'll gradually accumulate pointlessusingstatements as your code changes over time.

Static analysis is slower.

Code compilation is slower.

On the other hand, there aren't many reasons to leave them in. I suppose you save yourself the effort of having to delete them. But if you're that lazy, you've got bigger problems!

出处:stackflow链接

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容