Unused "used" directives do not appear as a warning, any valid reason?

Unused 'using' directives do not appear as a warning [C #], why is this so?

Is there a good reason for this?

+3
source share
2 answers

Eric Lipper talks about this in his blog: Why are unused directives not a warning? .

This will result in many warnings that are not really problems. The C # compiler only tries to warn you if there really is a potential problem with the code. If there were too many unimportant warnings, people will start to ignore them.

, Visual Studio, , using, , .

+7

, -.

+1

Source: https://habr.com/ru/post/1758921/


All Articles