Mega Code Archive

 
Categories / C# / Collections Data Structure
 

Returns a Boolean indicating whether the Array is Empty (is Null or has a length of zero)

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));     }   } }