I want to empty a list. How to do that?
You need the Clear() function on the list, like so.
List myList = new List(); myList.Add(new object()); // Add something to the list myList.Clear() // Our list is now empty