fcs-utils/ExtensionsEx.cs

37 lines
1.1 KiB
C#
Raw Normal View History

2020-10-19 11:22:06 +02:00
// ***********************************************************************
// Assembly : FCS.Lib
// Author : FH
// Created : 27-08-2016
//
// Last Modified By : Frede H.
2021-11-06 11:16:18 +01:00
// Last Modified On : 2021-02-24
2020-10-19 11:22:06 +02:00
// ***********************************************************************
// <copyright file="ExtensionsEx.cs" company="FCS">
2021-11-09 10:51:55 +01:00
// Copyright © FCS 2015-2022
2020-10-19 11:22:06 +02:00
// </copyright>
// <summary></summary>
// ***********************************************************************
using System;
using System.Collections.Generic;
namespace FCS.Lib
{
/// <summary>
2021-11-06 11:16:18 +01:00
/// Class ExtensionsEx.
2020-10-19 11:22:06 +02:00
/// </summary>
public static class ExtensionsEx
{
/// <summary>
2021-11-06 11:16:18 +01:00
/// ForEach loop
2020-10-19 11:22:06 +02:00
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="items">The items.</param>
/// <param name="action">The action.</param>
public static void ForEach<T>(this IEnumerable<T> items, Action<T> action)
{
foreach (var item in items)
action(item);
}
}
}