What are the benefits of maintaining a “clean” list of using directives in C#?

后端 未结 8 1021
予麋鹿
予麋鹿 2021-01-04 04:03

I know VS2008 has the remove and sort function for cleaning up using directives, as does Resharper. Apart from your code being \"clean\" and removing the problem of referenc

8条回答
  •  臣服心动
    2021-01-04 04:28

    I can't speak to the benefits in compile time and performance, but there's a lower chance of namespace collisions if you have minimize your using declarations. This is especially important if you are using more than one third party library.

提交回复
热议问题