Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- namespace IECollections
- {
- public static class IEnumerableCollections
- {
- public static void ForEach<T>(this IEnumerable<T> collection, Action<T> action)
- {
- foreach (var item in collection)
- {
- action(item);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement