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 queue contains an element with the specified value.
Dequeue The Dequeue method gets a value of the element that is placed as the first one from a queue.
Enqueue The Enqueue method queues an element with the specified value.
Peek The Peek method gets element value from the queue without dequeueing 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