.Net Tips – Use LINQ to avoid nested loops
Admit it, we’ve all done it before, writing those nasty nested loops just so we can iterate through multiple lists to get some combination/permutation of the lists, e.g.: 1: for (int i = 0; i < 10; i++) 2: { 3: for (int j = 0; j < 10; j++) 4: { 5: for (int …