<PackageReference Include="Castle.Core" Version="3.3.0" />

CollectionExtensions

public static class CollectionExtensions
public static TResult[] ConvertAll<T, TResult>(this T[] items, Converter<T, TResult> transformation)

public static T Find<T>(this T[] items, Predicate<T> predicate)

public static T[] FindAll<T>(this T[] items, Predicate<T> predicate)

public static void ForEach<T>(this IEnumerable<T> items, Action<T> action)

public static bool IsNullOrEmpty(this IEnumerable this)

Checks whether or not collection is null or empty. Assumes colleciton can be safely enumerated multiple times.