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
More generic if you use ICollection:
ICollection
public static bool IsNullOrEmpty (this ICollection collection) { return collection == null || collection.Count == 0; }