using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace Core.Common.Utils.Extensions
{
///
/// This class defines extension methods for and .
///
public static class EnumerableExtensions
{
///
/// Perform a certain action for each element in a sequence.
///
/// The element type of the sequence.
/// A sequence that contains elements to be acted upon.
/// The action that should be performed on each element.
/// Do not define an action that effect .
public static void ForEachElementDo(this IEnumerable source, Action action)
{
foreach (var item in source)
{
action(item);
}
}
}
}