Foley .NET Utilities Class Library

SetBase.Add Method (ICollection)

Adds the elements of the specified ICollection to the set.

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

Parameters

collection
The ICollection whose elements are added to the set.

Return Value

true if the set is modified; otherwise false.

Implements

ISet.Add

Exceptions

Exception TypeCondition
System.NullReferenceException The collection is a null reference (Nothing in Visual Basic).

See Also

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