resabio


Comments:

Shuffle in linq (part 2)

posted by resabioresabio(95) 4 months, 5 days ago 0

Cannot comment on site, so I will comment here. The extension method doesn't force execution. Thus, although the solution will randomize code, it will also randomize it differently in each iteration. Not a bad idea, if intended, but dangerous to use in Framework development, as well, I can see a developer scratching his head why the order of this list keeps changing if s/he is not aware of the use of this solution in a previous chain of linq, a few calls deep.

Reply