Queue Class (Collection)

Defines the structure of an object that represents a collection of elements accessed on a first-in, first-out (FIFO) basis.  

Elements are added to the end of the queue using the Enqueue(object) method where elements can reference different object types.

Elements are removed from the beginning of the queue using the Dequeue method.  The Peek method reads the first element without removing it.

Namespace: elsystem.collections 

Properties

   Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).

  Name Type Description
Public property Count int Gets the number of elements contained in the queue.
Methods
  Name Description
Public property Clear Removes all object from the queue.
Public property Contains(obj) True if the queue contains the specified object, false if not found.
Public property Create Initializes a new instance of the Queue class.
Public property Dequeue Removes and returns the object at the beginning of the queue.
Public property Enqueue(obj) Adds an object to the end of the queue.
Public property Peek Returns the object at the beginning of the queue without removing it.
Inheritance Hierarchy

elsystem.Object

elsystem.Collections.Queue