Virtu/Library/IEnumerableExtensions.cs

17 lines
359 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
namespace Jellyfish.Library
{
public static class IEnumerableExtensions
{
public static void ForEach<T>(this IEnumerable<T> source, Action<T> action)
{
foreach (T item in source)
{
action(item);
}
}
}
}