Foley .NET Utilities Class Library

LinkedList.Insert Method (Int32, ICollection)

Inserts all the elements of an ICollection starting at a index in the LinkedList.

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

Parameters

index
The index in the LinkedList to starting inserting the elements of the provided ICollection.
collection
The ICollection whose elements should be inserted to the LinkedList.

Return Value

true if the LinkedList is modified; otherwise false.

Implements

IList2.Insert

Exceptions

Exception TypeCondition
System.NullReferenceException The collection is a null reference (Nothing in Visual Basic).
System.ArgumentOutOfRangeException The index is less than zero.

See Also

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