C# – Consequences of Having Unnecessary References and Usings

c

I'm a bit of a neat freak and tend to keep my projects by cleaning references and usings in each class to keep only what's actually used.

What other argument could I make (besides calming my OCD nerve) of keeping to the essentials? I'm thinking mostly system references, any reference to custom work will bring its lot of backward compatibility issues. Is the release footprint bigger? Compile time longer?

Best Answer

Intellisense will be a heck of a lot more useful to you if you keep using at a minimum, and that is a great advantage.

Other than that, I do not think there is any gain. So maybe the C# compiler will work faster by, say, 1%; so what.

Related Topic