4 ms·
Yeah, that smells a bit like premature optimization. Anyway, I'd use foreach as much as possible, avoiding that issue as a side-effect.
by scintill76 12y ago
Yeah, that smells a bit like premature optimization. Anyway, I'd use foreach as much as possible, avoiding that issue as a side-effect.
- jbrooksuk 12y agoI completely agree. Foreach is generally nicer for looping a collection anyway.