ConcurrentBag<T>.IsEmpty Property

Definition

获取一个值,该值指示 ConcurrentBag<T> 是否为空。Gets a value that indicates whether the ConcurrentBag<T> is empty.

public:
 property bool IsEmpty { bool get(); };
public bool IsEmpty { get; }
member this.IsEmpty : bool
Public ReadOnly Property IsEmpty As Boolean

Property Value

Boolean

如果 true 为空,则为 ConcurrentBag<T>;否则为 falsetrue if the ConcurrentBag<T> is empty; otherwise, false.

Applies to

See also