RetainAllAsync Method
RetainAllAsync<TItem>(ICollection<TItem>)
Retains only the elements in this collection that are contained in the specified collection.
Declaration
Task<bool> RetainAllAsync<TItem>(ICollection<TItem> items) where TItem : T
Parameters
| ICollection<TItem> | items | The c.  | 
    
Returns
| Task<bool> | 
  | 
    
Type Parameters
| TItem | type of elements  | 
    
Remarks
In other words, removes from this collection all of its elements that are not contained in the specified collection.