1 2 3 4 5 6 7 8 9
using System.Collections.Generic; using System.Linq; namespace IOL.Helpers; public static class EnumerableExtension { public static bool IsNullOrEmpty<T>(this IEnumerable<T> enumerable) => enumerable != null && !enumerable.Any<T>(); }