System.Collections.Concurrent.ConcurrentQueue<T>.IsEmpty Property

Gets a value that indicates whether the System.Collections.Concurrent.ConcurrentQueue`1 is empty.

Syntax

public bool IsEmpty { get; }

Value

Documentation for this section has not yet been entered.

Remarks

For determining whether the collection contains any items, use of this property is recommended rather than retrieving the number of items from the ConcurrentQueue`1.Count property and comparing it to 0. However, as this collection is intended to be accessed concurrently, it may be the case that another thread will modify the collection after ConcurrentQueue`1.IsEmpty returns, thus invalidating the result.

Requirements

Namespace: System.Collections.Concurrent
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0