Foley .NET Utilities Class Library

SetBase.Remove Method (ICollection)

Removes the first occurrence of each element of the specified ICollection from the set.

[Visual Basic]
Overridable Overloads Public Function Remove( _
   ByVal collection As ICollection _
) As Boolean Implements _
   ISet.Remove
[C#]
public virtual bool Remove(
   ICollection collection
);

Parameters

collection
The ICollection used to determine what elements to remove from the set.

Return Value

true if the set is modified; otherwise false.

Implements

ISet.Remove

Exceptions

Exception TypeCondition
System.NotSupportedException

The set is read-only.

-or-

The set has a fixed size.

See Also

SetBase Class | SetBase Members | Foley.Utilities.Collections Namespace | SetBase.Remove Overload List