Foley .NET Utilities Class Library

ISet.Add Method (ICollection)

When implemented by a class, adds all the elements in the specified collection that are not already contained in the set.

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

Parameters

collection
The ICollection whose elements are to be added to 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 | ISet.Add Overload List