9 references to Count
System.Collections (1)
System\Collections\Generic\PriorityQueue.cs (1)
1062_queue.Count == 0 ? EnumerableHelpers.GetEmptyEnumerator<(TElement Element, TPriority Priority)>() :
System.Threading.Channels (8)
System\Threading\Channels\UnboundedPriorityChannel.cs (8)
67public override int Count => _parent._items.Count; 143if (parent._doneWriting != null && parent._items.Count == 0) 163if (parent._items.Count != 0) 223completeTask = parent._items.Count == 0; 322private int ItemsCountForDebugger => _parent._items.Count; 337if (_items.Count != 0) 348Debug.Assert(_items.Count == 0, "There are blocked/waiting readers, so there shouldn't be any data available."); 357private int ItemsCountForDebugger => _items.Count;