/ Published in: C#
This will allow you to use the LINQ ForEach method on any IEnumerable.
Expand |
Embed | Plain Text
public static void ForEach<T>(this IEnumerable<T> source, Action<T> action) { foreach (T item in source) action(item); }
You need to login to post a comment.
