Foley .NET Utilities Class Library

LinkedSet.Retain Method 

Retains the occurrence of each element of the specified ICollection from the LinkedSet.

[Visual Basic]
Overrides Public Function Retain( _
   ByVal collection As ICollection _
) As Boolean Implements _
   ISet.Retain
[C#]
public override bool Retain(
   ICollection collection
);

Parameters

collection
The ICollection used to determine what elements to be retained in the LinkedSet.

Return Value

true if the LinkedSet is modified; otherwise false.

Implements

ISet.Retain

Exceptions

Exception TypeCondition
System.NotSupportedException

The LinkedSet is read-only.

-or-

The LinkedSet has a fixed size.

System.ArgumentNullException The collection is a null reference (Nothing in Visual Basic).

See Also

LinkedSet Class | LinkedSet Members | Foley.Utilities.Collections Namespace