Norgul Norgul - 9 days ago 7
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

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.