#if NETFRAMEWORK using System.Collections.Generic; using System; #endif namespace EnvelopeGenerator.Infrastructure { public static class EnumerableExtensions { #if NETFRAMEWORK public static void ForEach(this IEnumerable values, Action action) { foreach (T value in values) { action(value); } } #endif } }