remove empty elements from list c# code example
Example 1: remove items from list c# condition
prods.RemoveAll(s => s.ID == 1)
Example 2: remove all array elements c#
Array.Clear(myArray, 0, myArray.Length);
prods.RemoveAll(s => s.ID == 1)
Array.Clear(myArray, 0, myArray.Length);