Hi I am trying to understand differences between All and ForEach in Linq.
I know that All is used for checking a condition and returns bool if the predicate is satisfied. But when i have an assignment inside the predicate it simply works fine and donot complain.
What is the use of ForEach in that case? Or what cases makes it use of ForEach
It might be little silly but need to know significance