18 lines
265 B
C#
18 lines
265 B
C#
|
|
|
|
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
public static class Enumerables
|
|
{
|
|
public static void ForEach<T>( this IEnumerable<T> @this, Action<T> action )
|
|
{
|
|
foreach( T item in @this )
|
|
{
|
|
action( item );
|
|
}
|
|
}
|
|
}
|