Foley .NET Utilities Class Library

List2Base.Add Method (ICollection)

Adds the elements of the specified ICollection to the list.

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

Parameters

collection
The ICollection whose elements are added to the list.

Return Value

true if the list is modified; otherwise false.

Implements

IList2.Add

Exceptions

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

See Also

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