DEV Community

Discussion on: C# lambda vs foreach readability.

Collapse
 
klawingco profile image
Marc Lawingco

I don't understand,
LINQ is much more readable than for each in anyday.
While foreach is faster than LINQ, its not that noticeable enough.

So the idea is
You want readability over performance = LINQ
You want a slightly faster performance over readiblity = For Each.

Collapse
 
ucavalcante profile image
Ulisses Cavalcante

Totally agree, ty.