I’ve just installed resharper and it’s letting me know the namespaces i’m not actually using in each of my classes.
which lead me to the question – is there actually any overhead in leaving these, unused, using declarations in?
is it just a matter of tight code, or is there a performance hit in invoking these namespaces when i don’t need to?
From The C# Team’s answers to frequently asked questions:
You can verify that this is actually the case by calling
Assembly.GetReferencedAssemblies(); you’ll see that anything that isn’t used won’t actually be included in the list.The main utility in stripping out unused ones is