SyntaxFix
Write A Post
Hire A Developer
Questions
public static void Each<T>(this IEnumerable<T> items, Action<T> action) { foreach (var item in items) { action(item); } }
... and call it thusly:
myList.Each(x => { x.Enabled = false; });