This is one thing that really bugs me about C#. In VB6 I could do this:
Dim blah as SomeObject
For Each blah in SomeCollection
blah.foo
Next blah
And it would iterate through all the SomeObjects in SomeCollection, and ignore everything else.
In C# it errors out. ![]()