move DbTriggerParams to Infrastructure layer.
- createConfig for flexable configuration
This commit is contained in:
20
EnvelopeGenerator.Infrastructure/EnumerableExtensions.cs
Normal file
20
EnvelopeGenerator.Infrastructure/EnumerableExtensions.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
#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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user