Norgul Norgul - 10 months ago 97
C# Question

C# namespace impact on speed

I was wondering if there is some difference in performance between declaring a namespace with

using
keyword, or referencing it directly each time?

Answer Source

At execution time, there is no difference, since both options compile to the same IL code.

Theoretically, there might be a difference in compilation time, but I doubt that it is even measurable.