Queues are useful for storing messages in the order they were received for sequential processing. Objects stored in a Queue<T> are inserted at one end and removed from the other. The capacity of a Queue<T> is the number of elements the Queue<T> can hold. As elements are added to a Queue<T>, the capacity is automatically increased as required.
3.5, 2.0, Silverlight System.dll
C#
 
Queue<string> numbers = new Queue<string>();
VB
 
Dim numbers As New Queue(Of String)()
  • Is this Answer helpful?
  •  
  • Yes 
  •  
  • No