c# list empty code example
Example 1: c# empty list
myList.Clear();
Example 2: c# tell if list object is empty
if(listOfObjects.Count == 0){
//when list is empty
}
myList.Clear();
if(listOfObjects.Count == 0){
//when list is empty
}