Implemented interface members:
property
Count
System.Collections.Generic.IReadOnlyCollection<T>.Count
property
Count
System.Collections.ICollection.Count
160 references to Count
illink (14)
Microsoft.AspNetCore.Components (5)
RenderTree\Renderer.cs (5)
738if (_batchBuilder.ComponentRenderQueue.Count == 0) 740if (_batchBuilder.ComponentDisposalQueue.Count == 0) 754while (_batchBuilder.ComponentRenderQueue.Count > 0) 784if (_batchBuilder.ComponentRenderQueue.Count > 0) 926while (_batchBuilder.ComponentDisposalQueue.Count > 0)
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyCallQueue.cs (1)
24public static bool HasUnstartedWork => _pendingWork.Count > 0;
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http2\Http2FrameWriter.cs (1)
991if (!_aborted && IsFlowControlQueueLimitEnabled && _waitingForMoreConnectionWindow.Count > _maximumFlowControlQueueSize)
Microsoft.AspNetCore.TestHost (1)
TestWebSocket.cs (1)
268if (_messageQueue.Count == 0)
Microsoft.Build (6)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
1032int countToSubmit = _unsubmittedRequests.Count;
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
789while (targetsToCheckForAfterTargets?.Count > 0)
BackEnd\Components\Scheduler\Scheduler.cs (2)
1893while (_pendingRequestCoresCallbacks.Count > 0) 2641while (blockingRequests.Count > 0)
Graph\ProjectGraph.cs (2)
572while (partialRoots.Count != 0) 708while (edgesToVisit.Count > 0)
Microsoft.Build.Engine (14)
Collections\DualQueue.cs (7)
92return readingQueue.Count + writingQueueCount; 209if (readingQueue.Count > 0) 215if (readingQueue.Count == 0) 222if ((backingQueueA.Count == 0) && (backingQueueB.Count == 0)) 254if (readingQueue.Count == 0) 258if (queue.Count > 0)
Engine\Node.cs (2)
405nodeStatus = new NodeStatus(requestId, true, buildRequests.Count, 0, 0, false); 575while (buildRequests.Count != 0)
Engine\TaskWorkerThread.cs (5)
136return this.workItemQueue.Count; 210if (workItemQueue.Count > 0) 221if (workItemQueue.Count > 0) 376if (workItemQueue.Count == 0) 408if (workerThreadQueue.Count != 0)
Microsoft.Cci.Extensions (2)
Extensions\CSharp\CSharpCciExtensions.cs (2)
144while (typesToCheck.Count != 0) 181while (typesToCheck.Count != 0)
Microsoft.DotNet.AsmDiff (2)
AssemblySet.cs (2)
58while (queue.Count > 0) 161while (queue.Count > 0)
Microsoft.DotNet.Build.Tasks.Packaging (1)
CreateTrimDependencyGroups.cs (1)
102int groupsToCheck = newDependencyGroups.Count;
Microsoft.Extensions.Logging.Console (6)
ConsoleLoggerProcessor.cs (6)
114while (_messageQueue.Count >= MaxQueueLength && !_isAddingCompleted) 128Debug.Assert(_messageQueue.Count < MaxQueueLength); 129bool startedEmpty = _messageQueue.Count == 0; 163while (_messageQueue.Count == 0 && !_isAddingCompleted) 168if (_messageQueue.Count > 0) 171if (_messageQueue.Count == MaxQueueLength - 1)
MSBuild (2)
OutOfProcTaskHostNode.cs (2)
661int packetCount = _receivedPackets.Count; 667if (_receivedPackets.Count > 0)
MSBuildTaskHost (2)
OutOfProcTaskHostNode.cs (2)
661int packetCount = _receivedPackets.Count; 667if (_receivedPackets.Count > 0)
PresentationCore (7)
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (2)
628if (_renderCompleteDRThreadStrokeInfoList.Count > 0) 635if (_renderCompleteDRThreadStrokeInfoList.Count == 0)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
325if (_queueStylusEvents.Count > 0)
System\Windows\Media\Animation\TimeManager.cs (1)
628while (_eventQueue.Count > 0)
System\Windows\Media\ChannelManager.cs (3)
95while (_freeSyncChannels.Count > 0) 159if (_freeSyncChannels.Count > 0) 209if (_freeSyncChannels.Count <= 3)
PresentationFramework (3)
MS\Internal\Data\DataBindEngine.cs (2)
538if (_crossThreadQueue.Count > 0) 565if (_crossThreadQueue.Count > 0)
System\Windows\Controls\ItemContainerGenerator.cs (1)
1410if (_factory._recyclableContainers.Count > 0 && !_factory.Host.IsItemItsOwnContainer(item) && !isNewItemPlaceHolderWhenGrouping)
System.Collections (2)
System\Collections\Generic\SortedSet.cs (1)
241while (processQueue.Count != 0)
System\Collections\Generic\SortedSet.TreeSubSet.cs (1)
257while (processQueue.Count != 0)
System.ComponentModel.Composition (3)
System\ComponentModel\Composition\ContractNameServices.cs (3)
130if (genericTypeArguments.Count != 0) 268if (genericTypeArguments.Count == 0) 305if (typeArguments.Count != 0)
System.Composition.Hosting (2)
System\Composition\Hosting\Core\UpdateResult.cs (2)
27if (_remainingProviders.Count == 0) 47if (_remainingProviders.Count != 0)
System.Diagnostics.Process (1)
System\Diagnostics\AsyncStreamReader.cs (1)
228if (_messageQueue.Count == 0)
System.Linq (5)
System\Linq\ElementAt.cs (2)
168if (queue.Count == indexFromEnd) 176if (queue.Count == indexFromEnd)
System\Linq\Take.cs (3)
135Debug.Assert(queue.Count == Math.Min(count, startIndex)); 140Debug.Assert(endIndex - startIndex <= queue.Count); 165if (queue.Count == endIndex)
System.Linq.Expressions (1)
System\Linq\Expressions\DebugViewWriter.cs (1)
141while (_lambdas != null && _lambdas.Count > 0)
System.Linq.Parallel (8)
System\Linq\Parallel\Channels\SynchronousChannel.cs (1)
133return _queue.Count;
System\Linq\Parallel\Merging\OrderPreservingPipeliningMergeHelper.cs (6)
397if (buffer.Count == 0) 413if (buffer.Count == 0) 421Debug.Assert(buffer.Count > 0, "Producer's buffer should not be empty here."); 432if (buffer.Count < STEAL_BUFFER_SIZE) 465if (privateChunk.Count > 0) 471Debug.Assert(_privateBuffer[producer]!.Count == 0);
System\Linq\Parallel\Scheduling\OrderPreservingPipeliningSpoolingTask.cs (1)
134if (_buffers[_partitionIndex].Count >= OrderPreservingPipeliningMergeHelper<TOutput, TKey>.MAX_BUFFER_SIZE)
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (1)
186Count == 0 ? SZGenericArrayEnumerator<T>.Empty :
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerator.Unix.cs (1)
221if (_pending == null || _pending.Count == 0)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
6858if (Count == 1)
System.Private.DataContractSerialization (5)
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (3)
239if (q.Count > 0) 248while (q.Count > 1) 254Debug.Assert(q.Count == 1, "We should have one and only one in the rank queue.");
System\Runtime\Serialization\DataContract.cs (1)
1140while (itemTypeQueue.Count > 0)
System\Runtime\Serialization\ExtensionDataReader.cs (1)
72IDataNode? deserializedDataNode = (_deserializedDataNodes == null || _deserializedDataNodes.Count == 0) ? null : _deserializedDataNodes.Dequeue();
System.Private.Xml (2)
System\Xml\Schema\ContentValidator.cs (1)
1460while (unmarked.Count > 0)
System\Xml\Serialization\CodeGenerator.cs (1)
231if (freeLocalQueue.Count == 0)
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\Formatters\Binary\BinaryObjectWriter.cs (1)
728if (_objectQueue!.Count == 0)
System.Text.Json (2)
src\libraries\System.Text.Json\Common\JsonHelpers.cs (2)
144Debug.Assert(childlessQueue.Count > 0, "The graph contains cycles."); 170} while (childlessQueue.Count > 0);
System.Text.Json.SourceGeneration (5)
JsonSourceGenerator.Parser.cs (2)
88Debug.Assert(_typesToGenerate.Count == 0); 140while (_typesToGenerate.Count > 0)
src\libraries\System.Text.Json\Common\JsonHelpers.cs (3)
34if (queue.Count > 0) 144Debug.Assert(childlessQueue.Count > 0, "The graph contains cycles."); 170} while (childlessQueue.Count > 0);
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Explore.cs (3)
34while (toExplore.Count > 0) 54if (exploreNfa && toExplore.Count > 0) 72while (toExplore.Count > 0)
System.Threading.Tasks.Dataflow (27)
Blocks\BatchBlock.cs (12)
395(_batchesCompleted + (_messages.Count / _batchSize)) >= _dataflowBlockOptions.ActualMaxNumberOfGroups) 509bool noMoreMessages = _decliningPermanently && _messages.Count < _batchSize; 520if (_messages.Count > 0) MakeBatchIfPossible(evenIfFewerThanBatchSize: true); 574int neededMessageCountToCompleteBatch = _batchSize - _messages.Count; 583if (_nonGreedyState.AcceptFewerThanBatchSize && _messages.Count > 0) 649_messages.Count + _nonGreedyState.PostponedMessages.Count); 735bool fullBatch = _messages.Count >= _batchSize; 738if (fullBatch || (evenIfFewerThanBatchSize && _messages.Count > 0)) 740var newBatch = new T[fullBatch ? _batchSize : _messages.Count]; 773Debug.Assert(_messages.Count == 0, "The queue must be empty between batches in non-greedy mode"); 893itemCountNeededToCompleteBatch = _batchSize - _messages.Count; 1153private int InputCountForDebugger { get { return _messages.Count; } }
Blocks\BroadcastBlock.cs (9)
629if (_messages.Count == 1) _enableOffering = true; 730if (_nextMessageReservedFor == null && _messages.Count > 0) 736while (_messages.Count > 1) 744Debug.Assert(_messages.Count > 0, "There must be at least one message to dequeue."); 749if (_messages.Count == 0) _enableOffering = false; 830bool processingToDo = _enableOffering && _messages.Count > 0; 844_owningSource, _taskForOutputProcessing, DataflowEtwProvider.TaskLaunchedReason.OfferingOutputMessages, _messages.Count); 927bool noMoreMessages = _decliningPermanently && _messages.Count == 0; 946(_decliningPermanently && _messages.Count == 0) || CanceledOrFaulted,
Blocks\JoinBlock.cs (6)
531Debug.Assert(_messages.Count >= 0, "A message must have been consumed by this point."); 562return _messages.Count > 0; 587return !_sharedResources._dataflowBlockOptions.Greedy ? _nonGreedy!.PostponedMessages.Count : _messages!.Count; 600int count = _messages!.Count; 742_messages!.Count : 953private int InputCountForDebugger { get { return _messages != null ? _messages.Count : _nonGreedy!.ConsumedMessage.Key ? 1 : 0; } }
System.Windows.Input.Manipulations (14)
System\Windows\Input\Manipulations\ManipulationSequence.cs (14)
208ManipulationState firstSample = this.history.Count > 0 ? this.history.Peek() : default(ManipulationState); 231if (this.smoothing.Count > 1) 247if (this.smoothing.Count > 1) 263if (this.smoothing.Count > 1) 404if (this.processorState != ProcessorState.Waiting && currentManipulatorCount > 0 && this.history.Count > 0) 739if (this.history.Count == 0) 1083int count = queue.Count; 1144int count = queue.Count; 1292if (Count >= MaxHistoryLength) 1298while (Count > 0) 1361while (Count > this.historyLength) 1398if (Count == 0) 1414if (Count >= this.historyLength) 1421while (Count > 0)
System.Xaml (9)
System\Xaml\Context\NameFixupGraph.cs (1)
219get { return _resolvedTokensPendingProcessing.Count > 0; }
System\Xaml\Parser\NodeStreamSorter.cs (2)
124if (_buffer.Count > 0) 408_moveList.Add(_buffer.Count); // mark the current position as needing fixup
System\Xaml\Parser\XamlScanner.cs (2)
156if (_readNodesQueue.Count == 0) 164while (_readNodesQueue.Count == 0)
System\Xaml\XamlNodeQueue.cs (3)
53get { return _nodeQueue.Count == 0; } 58get { return _nodeQueue.Count; } 93if (_nodeQueue.Count > 0)
System\Xaml\XamlObjectReader.cs (1)
65while (context.PendingNameScopes.Count > 0)