Skip to content

Instantly share code, notes, and snippets.

@eka808
Created November 29, 2013 10:56
Show Gist options
  • Save eka808/7704199 to your computer and use it in GitHub Desktop.
Save eka808/7704199 to your computer and use it in GitHub Desktop.
ForEach implementation
public static void ForEach<T>(this IEnumerable<T> enumeration, Action<T> action)
{
foreach(T item in enumeration)
{
action(item);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment