When you reference certain methods, you can either use using or explicitly type in the entire namespace. Are there any speed advantages of using one method over the other, or is it simply there to make typing out the entire namespace easier? thanks
When you reference certain methods, you can either use using or explicitly type in
Share
There is no difference at runtime.
In the .NET meta-data, a type is always represented using a full name that includes the namespace, so the
usingdirective known from C# will disappear when a program is compiled.There are some subtle aspects (at compile time) when it comes to writing the
usinginside or outside of anamespace(see for example this question), but that’s also only a compile-time issue.