美文网首页
C# using directive is unnecessar

C# using directive is unnecessar

作者: 大魔王是本人 | 来源:发表于2017-09-30 12:48 被阅读235次

    原因:

    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链接

    相关文章

      网友评论

          本文标题:C# using directive is unnecessar

          本文链接:https://www.haomeiwen.com/subject/fivgextx.html