Skip to content

Instantly share code, notes, and snippets.

@lorddev
Created October 21, 2012 18:59
Show Gist options
  • Save lorddev/3928094 to your computer and use it in GitHub Desktop.
Save lorddev/3928094 to your computer and use it in GitHub Desktop.
Enforces a rule that a collection can perform a certain action on each of its items.
/// <summary>
/// Enforces a rule that a collection can perform a certain action on each of its items.
/// </summary>
/// <typeparam name="T"></typeparam>
public interface IEachified<T>
{
void ForEach(Action<T> action);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment