ConcurrentBag<T>.IsEmpty 属性

定义

获取一个值,该值指示 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

属性值

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

适用于

另请参阅