I have seen that you can either do
using System.IO
and use
Path.GetDirectoryName(blah blah)
OR directly use
System.IO.Path.GetDirectoryName(blah blah);
Is there any difference between them from a point of performance?
Does using System.IO
loads all static classes in the namespace to the memory resulting in using more memory or is the framework is intelligent enough to avoid that? If yes, how?
Or is this all just used to avoid naming collisions between objects across namespaces?
Any insight would be greatly appreciated :)