What, if any, is the performance difference between the following two loops?
for (Object o: objectArrayList) { o.DoSomething(); }
and <
Even with something like an ArrayList or Vector, where "get" is a simple array lookup, the second loop still has additional overhead that the first one doesn't. I would expect it to be a tiny bit slower than the first.