· software
Clean Up Your C# Loops: Flattening Nested Collections with LINQ SelectMany
Introduction Have you ever dealt with a list within a list and found yourself writing messy nested foreach loops just to get to the data? In C, the .SelectMany...