Method RemoveAllBut
RemoveAllBut(Predicate<T>)
Removes all the elements in the list that does not satisfy the predicate.
public void RemoveAllBut(Predicate<T> match)
Parameters
match
Predicate<T>The match.
Removes all the elements in the list that does not satisfy the predicate.
public void RemoveAllBut(Predicate<T> match)
match
Predicate<T>The match.