I have a list:
List<int> MyList = new List<int>();
I added 10 int values in it:
for{i=1;i<10;i++}
MyList.Add(1);
Can I make it empty in one shot, rather than using
- 10 times iteration of
Removefunction RemoveAllmethod with aPredicate<(Of <(T>)>)generic delegate.
MyList.Clear();