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
Remove
functionRemoveAll
method with a Predicate<(Of <(T>)>)
generic delegate.MyList.Clear();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With