Norgul Norgul - 1 year ago 118
C# Question

C# namespace impact on speed

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

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download