IQueue

Description

The IQueue interface contains properties and methods that are used to work with a queue of elements.

Inheritance Hierarchy

          IEnumerable

          ICollection

          IQueue

Comments

Principle of queue operation is First in - First out. Elements are always added to the end of a queue.

Properties inherited from ICollection

  Property name Brief description
Count The Count property returns the number of array elements.

Methods

  Method name Brief description
Clear The Clear method clears the queue.
Clone The Clone method creates a copy of the queue.
Contains The Contains method checks if an element exists.
Dequeue The Dequeue method extracts value of the element from the queue.
Enqueue The Enqueue method places the element into the queue.
Peek The Peek method extracts value of the queue without removing the element.
ToArray The ToArray method converts the queue into a standard array.

Methods inherited from ICollection

  Method name Brief description
CopyTo The CopyTo method copies the collection into an array.

See also:

Collections Assembly Interfaces