Foley .NET Utilities Class Library

List2Base.Insert Method (Int32, Object)

When implemented by a class, inserts the Object specified into the list at the specified position.

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

Parameters

index
The zero-based index at which the Object should be inserted.
value
The Object to insert into the list.

Return Value

true if the list is modified; otherwise false.

Implements

IList2.Insert

Remarks

This method hides the Insert method. It is recommened that you do an explicit interface method implementation for complete compatibility.

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