Typically, I see a few using statement at the top of class file. Example:
using System.Collections.Generic; using System.IO; using System.Xml.Linq; But in a project I am working on, on several occasions I see 20 or more usings/imports in one class file. Is this bad design? It seems to be that classes designed to do one thing should only rely on a few components.
usingstatements. You might want to see how many of those 20 are in actual use.usingstatements without having to increase the number of classes? Keep in mind that increasing number of classes or source files will increase source code management overhead.