APRlib

SetBase.RetainAll Method 

Removes all the elements that aren't contained in the specified collection.

protected virtual bool RetainAll(
   ICollection collection
);

Parameters

collection
The collection used to verify the elements that will be retained.

Return Value

True if all the elements were successfully removed, false otherwise.

See Also

SetBase Class | edu.neu.ccs.demeter.APRlib.Collections Namespace