Created
October 21, 2012 18:59
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <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