c# not empty array code example
Example 1: c# check if array is empty
if(array == null || array.Length == 0)
Example 2: how to empty an array c#
Array.Clear(arr, 0, arr.Length);
if(array == null || array.Length == 0)
Array.Clear(arr, 0, arr.Length);