using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Extensions { public static class IEnumerableExtensions { public static bool IsNullOrEmpty([NotNullWhen(false)] this IEnumerable? list) => list == null || (list != null && !list.Any()); } }