Is there a function in the .NET library that will return true or false as to whether an array is null or empty? (Similar to string.IsNullOrEmpty).
string.IsNullOrEmpty
I had
This is an updated C# 8 version of the (currently) up-voted answer
public static bool IsNullOrEmpty([NotNullWhen(false)] this T[]? array) => array == null || array.Length == 0;