Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

foreach for IEnumerable

public static void ForEach<T>(this IEnumerable<T> enumeration, Action<T> action)
{
    foreach(T item in enumeration)
    {
        action(item);
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #foreach #IEnumerable
ADD COMMENT
Topic
Name
8+9 =