I love string.IsNullOrEmpty method. I\'d love to have something that would allow the same functionality for IEnumerable. Is there such? Maybe some collection he
string.IsNullOrEmpty
This may help
public static bool IsAny(this IEnumerable enumerable) { return enumerable?.Any() == true; } public static bool IsNullOrEmpty(this IEnumerable enumerable) { return enumerable?.Any() != true; }