{
foreach (IEnumerable<T> enumeration in enumerations)
{
foreach (T item in enumeration)
{
action?.Invoke(item);
}
}
}
collection.SelectMany(enumeration => enumeration).ToList().ForEach(action=> action(item))
That looks like a fine solution. Thanks!
Обсуждают сегодня