An NDoc Documented Class Library

RotDeque.Insert Method 

Insert an item into the deque at a specified position.

public virtual void Insert(
   int pos,
   object o
);

Parameters

pos
The position to insert at.
o
The element to insert.

Implements

IList.Insert

Remarks

The position is zero-based, with 0 being equivalent to a PushFront(), and Count being equivalent to a PushBack().

Exceptions

Exception TypeCondition
InvalidOperationException An attempt was made to insert an element into a full deque.
ArgumentOutOfRangeException The pos parameter specified a position beyond the deque boundaries.

See Also

RotDeque Class | Ringlet.Collections Namespace