In C #, when you add a usingdirective for a namespace, it gives you access to all types in that particular namespace. However, if the namespace has many types and I only need one specific one, I often just use the full name, thinking that I don’t want to provide any unnecessary classes that I know I won’t use (especially if there are a lot of them in this namespace) for performance reasons . I thought there had to be some kind of performance impact (no matter how minutes) to make them available, not not, but how much? (if there really is one). And if so, then it would be bad practice to do this everywhere, because will it not begin to accumulate to something remarkable (clever in performance)?
I saw another SO post about using the usingvs full qualified directive , but that doesn't apply to performance.
source
share