Tag Archives: performance

Benchmark of foreach .vs. for loop

The foreach loop provides a nice way to iterate through a generic container.  But, is there a price to pay for it performance wise .vs. using a for loop? It turns out that there is a performance hit when using … Continue reading

Posted in C#, efficient software development | Tagged , , | 1 Comment