System.Collections.Concurrent.ConcurrentBag<T>.Count Property

Gets the number of elements contained in the System.Collections.Concurrent.ConcurrentBag`1.

Syntax

public int Count { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The count returned represents a moment-in-time snapshot of the contents of the bag. It is possible that other threads might add or remove items immediately after you access the Count property.

Requirements

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