Refactoring nested foreach statement

Posted by dotnetdev on Stack Overflow See other posts from Stack Overflow or by dotnetdev
Published on 2010-03-12T15:18:48Z Indexed on 2010/03/12 15:27 UTC
Read the original article Hit count: 157

Filed under:

Hi,

I have a method with a nested foreach collection (iterate a set of objects and then look inside each object). I saw in a book a good pattern to make this much more elegant but cannot remember/find the code example. How else could I make this more tidy?

The code is just a typical nested foreach statement so I have not provided a code sample.

Thanks

© Stack Overflow or respective owner

Related posts about c#