Foley .NET Utilities Class Library

List2Base.Remove Method (ICollection)

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

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

Parameters

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

Return Value

true if the list is modified; otherwise false.

Implements

IList2.Remove

Exceptions

Exception TypeCondition
System.NotSupportedException

The list is read-only.

-or-

The list has a fixed size.

See Also

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