namespace Pilz.Extensions.Collections; public static class IEnumerableExtensions { public static IEnumerable ForEach(this IEnumerable @this, Action action) { foreach (var t in @this) action(t); return @this; } public static IQueryable ForEach(this IQueryable @this, Action action) { foreach (var t in @this) action(t); return @this; } }