Foley .NET Utilities Class Library

List2Base.Insert Method (Int32, ICollection)

When implemented by a class, inserts the elements of the ICollection to the list starting at the specified position.

[Visual Basic]
MustOverride Overloads Public Function Insert( _
   ByVal index As Integer, _
   ByVal collection As ICollection _
) As Boolean Implements _
   IList2.Insert
[C#]
public abstract bool Insert(
   int index,
   ICollection collection
);

Parameters

index
The zero-based index at which collection should be inserted.
collection
The ICollection whose elements are to be added to the list.

Return Value

true if the list is modified; otherwise false.

Implements

IList2.Insert

Exceptions

Exception TypeCondition
System.NotSupportedException

The list is read-only.

-or-

The list has a fixed size.

See Also

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