c# how to check if an array is empty code example Example: c# check if array is empty if(array == null || array.Length == 0)