// (C) Copyright 2019 C-xC-c // This file is part of BantFlags. // BantFlags is licensed under the GNU AGPL Version 3.0 or later. // see the LICENSE file or using System; using System.Collections.Generic; namespace BantFlags.Data { public static class IEnumerableExtensions { public static void ForEach(this IEnumerable enumeration, Action action) { foreach (T item in enumeration) { action(item); } } } }