In .NET
there is a String.IsNullOrEmpty, but there is no similar thing on an Array.
There should be, and there is a solution is in the new extension methods. This
one works for all collections.
using System.Collections;
namespace MyExtensions
{
public static class CollectionExtensions
{
public static bool IsNullOrEmpty(this ICollection col)
{
return (col == null || col.Count == 0);
}
}
}