ICollection<T>.RemoveRange Method
Overloads
| RemoveRange(array of T) |
Removes the first occurrence of each element from the collection. |
| RemoveRange(IEnumerable<T>) |
Removes the first occurrence of each element from the collection. |
Removes the first occurrence of each element from the collection.
Delphi
function RemoveRange(const values: array of T): Integer
Parameters
- values
- array of T
The elements to remove from the collection.
Returns
Integer
The number of elements removed from the collection.
Removes the first occurrence of each element from the collection.
Delphi
function RemoveRange(const values: IEnumerable<T>): Integer
Parameters
- values
- IEnumerable<T>
The elements to remove from the collection.
Returns
Integer
The number of elements removed from the collection.
Exceptions
values is nil .