SortableListInsertRange Method |
Inserts a collection of objects at a specified index.
Should not be used if the list is the KeepSorted property is set to true.
Namespace:
Pathfinding
Assembly:
RebornBuddy (in RebornBuddy.exe) Version: 3.3.1; net-4.5.win32; release
Syntax public void InsertRange(
int Index,
ICollection C
)
Parameters
- Index
- Type: SystemInt32
The index before which the objects must be added. - C
- Type: System.CollectionsICollection
The object to add.
Exceptions Exception | Condition |
---|
ArgumentException | The SortableList is set to use objects's IComparable interface, and the specifed object does not implement this interface. |
ArgumentOutOfRangeException | Index is less than zero or Index is greater than Count. |
InvalidOperationException | If 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