Click or drag to resize

SortableListInsert Method

IList implementation. Inserts an objects at a specified index. Cannot be used if the list has its KeepSorted property set to true.

Namespace:  Pathfinding
Assembly:  RebornBuddy (in RebornBuddy.exe) Version: 3.3.1; net-4.5.win32; release
Syntax
C#
public void Insert(
	int Index,
	Object O
)

Parameters

Index
Type: SystemInt32
The index before which the object must be added.
O
Type: SystemObject
The object to add.

Implements

IListInsert(Int32, Object)
Exceptions
ExceptionCondition
ArgumentExceptionThe SortableList is set to use object's IComparable interface, and the specifed object does not implement this interface.
ArgumentOutOfRangeExceptionIndex is less than zero or Index is greater than Count.
InvalidOperationExceptionIf the object is added at the specify index, the list will not be sorted any more and the KeepSorted property is set to true.
See Also