Skip to content

Instantly share code, notes, and snippets.

@ChrisMissal
Created August 7, 2009 16:33
Show Gist options
  • Save ChrisMissal/164000 to your computer and use it in GitHub Desktop.
Save ChrisMissal/164000 to your computer and use it in GitHub Desktop.
[DebuggerStepThrough]
public static void ForEach<T>(this IEnumerable<T> items, Action<T> processor)
{
foreach (var item in items)
{
processor(item);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment