Is there any impact in execution performance because of using
array.Length directly as
for exit condition? Which one of following methods will excute faster?
Dmitry Yudakov concludes through digging into the IL code generated by JIT compiler for both methods:
… both methods will compile into the exact same code, but the first one is written faster, even though there isn’t any benefit in terms of execution time.