/ Published in: C#
This will allow you to use the LINQ ForEach method on any IEnumerable.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public static void ForEach<T>(this IEnumerable<T> source, Action<T> action) { foreach (T item in source) action(item); }