I have an IEnumerable, and I'm trying to call a "Text" setter in every element of an enumerable. I can do:
foreach (Data d in DataEnumerable) { d.Text="123"; }
I can also do:
DataEnumerable.All(x => { x.Text = "123"; return true; });
What is the best practice of calling the set method for each element of an enum?
source share