using System; using System.Collections.Generic; public static class Enumerables { public static void ForEach( this IEnumerable @this, Action action ) { foreach( T item in @this ) { action( item ); } } }