Queue (Constructor) Summary Constructs a System.Queue<T> object. Signatures Click on a signature to select it and view its documentation. public Queue() public Queue(T[] data) Usage public Queue() public Queue(T[] data) Parameters data The data to initialize the System.Queue<T> object with. Description Constructs an empty queue. Constructs a System.Queue<T> object initialized to the specified data. Examples Initialization with data 1234import System; auto queue = new System.Queue<int>([ 1, 2, 3 ]);Console.log(queue.pop()); // 1 Share HTML | BBCode | Direct Link