foreach and ienurable c# code example
Example: ienumerable for each
items.ToList().ForEach(i => i.DoStuff());
// OR
foreach(T item in enumeration) {
// Actions
}
items.ToList().ForEach(i => i.DoStuff());
// OR
foreach(T item in enumeration) {
// Actions
}