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

Gets a value that indicates whether the System.Collections.Concurrent.ConcurrentStack`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 ConcurrentStack`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 ConcurrentStack`1.IsEmpty returns, thus invalidating the result.

For a code example, see System.Collections.Concurrent.ConcurrentStack`1.

Requirements

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