C# Queue Queue()

Description

Queue Queue() initializes a new instance of the Queue class that is empty, has the default initial capacity, and uses the default growth factor.

Syntax

Queue.Queue() has the following syntax.


public Queue()

Example


using System.Collections;
using System;//from  ww  w.j  a v  a2  s.c o m
public class MainClass{
  public static void Main(String[] argv){  
    Queue myCollection = new Queue();


  }
}
   

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Collections »




ArrayList
BitArray
Comparer
Hashtable
Queue
SortedList
Stack