Constructors
-
Concurrent
Queue`1() Initializes a new instance of the ConcurrentQueue`1 class. -
Concurrent
Queue`1(IEnumerable<`0>) Initializes a new instance of the ConcurrentQueue`1 class that contains elements copied from the specified collection.
Methods
- Clear() Removes all objects from the ConcurrentQueue`1.
-
Copy
To(`0[], sealed Copies the ConcurrentQueue`1 elements to an existing one-dimensional Array, starting at the specified array index.Int32) - Enqueue(`0) Adds an object to the end of the ConcurrentQueue`1.
-
Get
Enumerator() sealed Returns an enumerator that iterates through the ConcurrentQueue`1. -
To
Array() sealed Copies the elements stored in the ConcurrentQueue`1 to a new array. -
Try
Dequeue(`0&) Tries to remove and return the object at the beginning of the concurrent queue. -
Try
Peek(`0&) Tries to return an object from the beginning of the ConcurrentQueue`1 without removing it.
Properties
- Count sealed Gets the number of elements contained in the ConcurrentQueue`1.
-
Is
Empty Gets a value that indicates whether the ConcurrentQueue`1 is empty. -
System.
Collections. privatesealed Gets a value indicating whether access to the ICollection is synchronized with the SyncRoot.ICollection. Is Synchronized -
System.
Collections. privatesealed Gets an object that can be used to synchronize access to the ICollection. This property is not supported.ICollection. Sync Root