Foley .NET Utilities Class Library

ISet.Retain Method 

When implemented by a class, retains each element of the specified ICollection in the set.

[Visual Basic]
Function Retain( _
   ByVal collection As ICollection _
) As Boolean
[C#]
bool Retain(
   ICollection collection
);

Parameters

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

Return Value

true if the set is modified; otherwise false.

Exceptions

Exception TypeCondition
System.NotSupportedException

The set is read-only.

-or-

The set has a fixed size.

See Also

ISet Interface | ISet Members | Foley.Utilities.Collections Namespace