var matching = list.ForEach(x => x.Version > 1)You wouldn't expect to see
foreach(var x in list)I suspect it has a lot to with conciseness. Whilst I highly value conciseness, I value readability over conciseness.
{
if(x.Version > 1)
{
yield return x;
}
}
No comments:
Post a Comment