Skip to content

Instantly share code, notes, and snippets.

@voquanghoa
Created November 18, 2017 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voquanghoa/7a75ae03d8bf47b936b6b43bbf139686 to your computer and use it in GitHub Desktop.
Save voquanghoa/7a75ae03d8bf47b936b6b43bbf139686 to your computer and use it in GitHub Desktop.
public static class ArrayExtension
{
public static void ForEach<T>(this IList<T> list, Action<T> action)
{
foreach (var obj in list)
{
action(obj);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment