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