mirror of
https://github.com/digital-jellyfish/Virtu.git
synced 2024-11-27 15:52:12 +00:00
acd7892436
Fixed some code analysis warnings. Dropped Extended Strongly Typed Resource Generator dependency. --HG-- extra : convert_revision : svn%3Affd33b8c-2492-42e0-bdc5-587b920b7d6d/trunk%4035615
26 lines
607 B
C#
26 lines
607 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)
|
|
{
|
|
if (source == null)
|
|
{
|
|
throw new ArgumentNullException("source");
|
|
}
|
|
if (action == null)
|
|
{
|
|
throw new ArgumentNullException("action");
|
|
}
|
|
|
|
foreach (T item in source)
|
|
{
|
|
action(item);
|
|
}
|
|
}
|
|
}
|
|
}
|