Is Array Null Or Empty - CSharp System

CSharp examples for System:Array Null Element

Description

Is Array Null Or Empty

Demo Code


using System;//www  .  ja v a2  s . co  m

public class Main{

        public static bool IsNullOrEmpty(this Array array)
        {
            return array == null || array.Length == 0;
        }
}

Related Tutorials