c# clear list items

C#
MyList.Clear();
Source

Also in C#: