9 references to Count
System.Collections (1)
System\Collections\Generic\PriorityQueue.cs (1)
1067_queue.Count == 0 ? EnumerableHelpers.GetEmptyEnumerator<(TElement Element, TPriority Priority)>() :
System.Threading.Channels (8)
System\Threading\Channels\UnboundedPriorityChannel.cs (8)
73public override int Count => _parent._items.Count; 140if (parent._doneWriting is not null && parent._items.Count == 0) 160if (parent._items.Count != 0) 214completeTask = parent._items.Count == 0; 299private int ItemsCountForDebugger => _parent._items.Count; 343if (_items.Count != 0) 355Debug.Assert(_items.Count == 0, "There are blocked/waiting readers, so there shouldn't be any data available."); 365private int ItemsCountForDebugger => _items.Count;