namespace System
{
///<summary>
/// Add functions to the array class.
///</summary>
public static class ArrayExtensions
{
/// <summary>
/// Returns a Boolean indicating whether the Array is Empty (is Null or has a length of zero).
/// Extension Added by dotNetExt.Array
/// </summary>
/// <param name="array">Required. The Array to check against.</param>
/// <returns>Returns a Boolean indicating whether the Array is Empty (is Null or has a length of zero).</returns>
public static bool IsEmpty(this Array array)
{
return ((array == null) || (array.Length == 0));
}
}
}
|