79093278

Date: 2024-10-16 09:05:46
Score: 1
Natty:
Report link

The way I do it :

foreach (YourClass something in YourObject.SelectMany(x => x.Nested).SelectMany(x => x.MoreNesting)) {
    // Do Stuff Here
}

Probably not the best way to do it or whatever, it's just the clearest way for me, while avoiding the triple nesting look I don't quite like.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Exorion