using System.Collections.Generic; using System.Linq; namespace DTT.Utils.Extensions { /// /// Provides extension methods for objects that implement the interface. /// public static class EnumerableExtensions { /// /// Returns whether the enumerable is null or empty. /// /// The type of enumerable. /// The enumerable to check. /// Whether the enumerable is null or empty. public static bool IsNullOrEmpty(this IEnumerable enumerable) => enumerable == null || !enumerable.Any(); } }