mirror of
https://github.com/digital-jellyfish/Virtu.git
synced 2024-11-23 19:30:59 +00:00
17 lines
359 B
C#
17 lines
359 B
C#
|
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|