how to foreach in non-enumerable 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
}