Implemented interface members:
property
Count
System.Collections.Generic.IReadOnlyCollection<T>.Count
property
Count
System.Collections.ICollection.Count
176 references to Count
PresentationCore (4)
Core\CSharp\System\Windows\Media\Animation\TimeManager.cs (1)
633while (_eventQueue.Count > 0)
Core\CSharp\System\Windows\Media\ChannelManager.cs (3)
107while (_freeSyncChannels.Count > 0) 184if (_freeSyncChannels.Count > 0) 239if (_freeSyncChannels.Count <= 3)
PresentationFramework (3)
src\Framework\MS\Internal\Data\DataBindEngine.cs (2)
545if (_crossThreadQueue.Count > 0) 572if (_crossThreadQueue.Count > 0)
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (1)
1418if (_factory._recyclableContainers.Count > 0 && !_factory.Host.IsItemItsOwnContainer(item) && !isNewItemPlaceHolderWhenGrouping)
SMSvcHost (6)
System\ServiceModel\Activation\MessageQueue.cs (6)
115return sessionMessages.Count; 202else if (sessionMessages.Count >= maxQueueSize) 209sessionMessages.Count); 220TD.PendingSessionQueueRatio(sessionMessages.Count, maxQueueSize); 259if (sessionMessages.Count > 0) 262while (sessionWorkers.Count > 0)
System.Activities (16)
System\Activities\ActivityUtilities.cs (2)
1017while ((instancesRemaining != null && instancesRemaining.Count > 0) 1022Fx.Assert(instancesRemaining != null && instancesRemaining.Count > 0, "This must be the clause that caused us to enter");
System\Activities\Debugger\DebugManager.cs (2)
152while (pairsRemaining.Count > 0) 225while (pairsRemaining.Count > 0)
System\Activities\Debugger\InstrumentationTracker.cs (1)
50while (activitiesRemaining.Count > 0)
System\Activities\Debugger\SourceLocationProvider.cs (2)
302while (pairsRemaining.Count > 0) 390while (activitiesRemaining.Count > 0)
System\Activities\Debugger\XamlDebuggerXmlReader.cs (2)
413if (this.bufferedXamlNodes.Count > 0) 432UnitTestUtility.Assert(this.bufferedXamlNodes.Count == 0, "this.bufferedXamlNodes should be empty when we reach this code path.");
System\Activities\DynamicUpdate\ActivityComparer.cs (1)
297while (this.matchedActivities.Count > 0)
System\Activities\Hosting\WorkflowInstanceExtensionManager.cs (1)
223if (additionalInstanceExtensions != null && additionalInstanceExtensions.Count > 0)
System\Activities\Runtime\ActivityExecutor.cs (3)
697if (this.persistenceWaiters == null || this.persistenceWaiters.Count == 0) 2099if (this.persistenceWaiters != null && this.persistenceWaiters.Count > 0 && 2110if (this.persistenceWaiters.Count == 0)
System\Activities\Runtime\ExecutionPropertyManager.cs (1)
264while (toProcess.Count > 0)
System\Activities\Statements\StateMachineEventManager.cs (1)
93return this.CurrentBeingProcessedEvent == null && !this.OnTransition && this.queue.Count == 0;
System.Activities.Core.Presentation (2)
System\Activities\Core\Presentation\FlowchartDesigner.ModelChangeReactions.cs (1)
401while (flowElementsToProcess.Count > 0)
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (1)
458while (statesToProcess.Count > 0)
System.Activities.Presentation (8)
System.Activities.Presentation\System\Activities\Presentation\Model\GraphManager.cs (4)
70while (queue.Count > 0) 185while (queue.Count > 0) 216while (queue.Count > 0) 258while (queue.Count > 0)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (2)
410while (modelItems.Count > 0) 529while (modelItems.Count > 0)
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\UniqueModelItemHelper.cs (1)
189while (0 < todo.Count)
System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (1)
892while (queue.Count > 0)
System.Core (13)
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
155while (_lambdas != null && _lambdas.Count > 0) {
Microsoft\Scripting\Compiler\KeyedQueue.cs (4)
53if (queue.Count == 0) { 61if (_data.TryGetValue(key, out queue) && queue.Count > 0) { 63if (queue.Count == 0) { 85return queue.Count;
System\Linq\Parallel\Channels\SynchronousChannel.cs (1)
135return m_queue.Count;
System\Linq\Parallel\Merging\OrderPreservingPipeliningMergeHelper.cs (6)
394if (buffer.Count == 0) 407if (buffer.Count == 0) 415Contract.Assert(buffer.Count > 0, "Producer's buffer should not be empty here."); 425if (buffer.Count < STEAL_BUFFER_SIZE) 459if (privateChunk.Count > 0) 465Contract.Assert(m_privateBuffer[producer].Count == 0);
System\Linq\Parallel\Scheduling\OrderPreservingPipeliningSpoolingTask.cs (1)
138if (m_buffers[m_partitionIndex].Count >= OrderPreservingPipeliningMergeHelper<TOutput, TKey>.MAX_BUFFER_SIZE)
System.Data (8)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\GraphManager.cs (4)
70while (queue.Count > 0) 185while (queue.Count > 0) 216while (queue.Count > 0) 258while (queue.Count > 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (2)
410while (modelItems.Count > 0) 529while (modelItems.Count > 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\UniqueModelItemHelper.cs (1)
189while (0 < todo.Count)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (1)
892while (queue.Count > 0)
System.Data.Services (1)
System\Data\Services\Providers\ReflectionServiceProvider.cs (1)
475while (unvisitedTypes.Count != 0)
System.Data.Services.Client (1)
System\Data\Services\Client\Binding\BindingGraph.cs (1)
747while (q.Count != 0)
System.Runtime.DurableInstancing (4)
System\Runtime\DurableInstancing\InstanceOwner.cs (4)
359while (instanceQueue.Count > 0) 372if (instanceQueue.Count == 0) 384while (InProgressHandles.Count > 0) 417if (InProgressHandles.Count > 0)
System.Runtime.Serialization (2)
System\Runtime\Serialization\DataContract.cs (1)
1321while (itemTypeQueue.Count > 0)
System\Runtime\Serialization\ExtensionDataReader.cs (1)
81IDataNode deserializedDataNode = (deserializedDataNodes == null || deserializedDataNodes.Count == 0) ? null : deserializedDataNodes.Dequeue();
System.ServiceModel (33)
System\ServiceModel\Channels\CommunicationObject.cs (1)
1071if (this.exceptions.Count > 0)
System\ServiceModel\Channels\PeerNodeStateManager.cs (2)
180Fx.Assert(queue.Count > 0, "queue should not be empty"); 193if (queue.Count > 0)
System\ServiceModel\Channels\QueuedObjectPool.cs (3)
59if (this.objectQueue.Count < this.maxFreeCount && ! this.isClosed) 75if (this.objectQueue.Count == 0) 109Fx.Assert(this.objectQueue.Count == 0, "The object queue must be empty for new allocations");
System\ServiceModel\Channels\ReliableChannelBinder.cs (6)
1517if ((this.getChannelQueue == null) || (this.getChannelQueue.Count == 0)) 1651this.count += (this.getChannelQueue == null) ? 0 : this.getChannelQueue.Count; 1652this.count += (this.waitQueue == null) ? 0 : this.waitQueue.Count; 1761for (int i = waiters.Count; i > 0; i--) 1912if ((waiters != null) && (waiters.Count > 0)) 2118if ((waiters != null) && (waiters.Count > 0))
System\ServiceModel\Channels\ServiceChannel.cs (1)
2403if (this.queue.Count > 0)
System\ServiceModel\Channels\TransmissionStrategy.cs (10)
126return (this.window.Count > 0 || this.waitQueue.Count > 0); 201while (waitQueue.Count > 0) 275this.waitQueue.Count == 0); // Don't get ahead of anyone in the wait queue. 289if (waitQueue.Count != 0) 304if (this.closed || this.waitQueue.Count == 0) 311count = Math.Min(count, this.waitQueue.Count); 322while (adders.Count > 0) 399while (waitQueue.Count > 0) 816for (int i = 0; i < this.waitQueue.Count; i++) 831if (this.windowStart + this.window.Count + this.waitQueue.Count == Int64.MaxValue)
System\ServiceModel\Dispatcher\ConcurrencyBehavior.cs (4)
252return (((this.calloutMessageQueue != null) && (this.calloutMessageQueue.Count > 0)) || 253((this.newMessageQueue != null) && (this.newMessageQueue.Count > 0))); 261if (queue.Count == 0) 272if ((this.calloutMessageQueue != null) && (this.calloutMessageQueue.Count > 0))
System\ServiceModel\Dispatcher\FlowThrottle.cs (3)
73if (this.waiters.Count == 0) 126if (this.waiters.Count > 0) 129if (this.waiters.Count == 0)
System\ServiceModel\Dispatcher\QuotaThrottle.cs (2)
117if ((this.waiters.Count > 0) && (this.limit > 0)) 119if (this.limit < this.waiters.Count)
System\UriTemplateTrieNode.cs (1)
438if (nodesQueue.Count == 0)
System.ServiceModel.Activities (5)
System\ServiceModel\Activities\Dispatcher\PersistenceContext.cs (4)
579if (0 < this.transactionWaiterQueue.Count) 581while ((0 < this.transactionWaiterQueue.Count) && !atLeastOneSuccessfullyCompleted) 613while (0 < this.transactionWaiterQueue.Count) 624while (0 < this.transactionWaiterQueue.Count)
System\ServiceModel\Activities\WorkflowService.cs (1)
641while (activities.Count > 0)
System.ServiceModel.Internals (13)
System\Runtime\InputQueue.cs (10)
232if (readerQueue.Count > 0) 237if (queueState == QueueState.Shutdown && readerQueue.Count > 0 && itemQueue.ItemCount == 0) 239outstandingReaders = new IQueueReader[readerQueue.Count]; 374if (readerQueue.Count > 0 && this.itemQueue.ItemCount == 0) 376outstandingReaders = new IQueueReader[readerQueue.Count]; 459while (readerQueue.Count > 0) 595if (readerQueue.Count == 0) 606if (readerQueue.Count == 0) 666if (readerQueue.Count == 0 && waiterList.Count == 0) 709for (int i = readerQueue.Count; i > 0; i--)
System\Runtime\ThreadNeutralSemaphore.cs (3)
200for (int i = this.Waiters.Count; i > 0; i--) 269if (this.waiters == null || this.waiters.Count == 0) 305while (this.waiters.Count > 0)
System.ServiceModel.Routing (1)
System\ServiceModel\Routing\ClientFactory.cs (1)
264if (localWaiters != null && localWaiters.Count > 0)
System.Web (1)
UI\PageAsyncTaskManager.cs (1)
32while (_registeredTasks.Count > 0) {
System.Workflow.Activities (16)
Common\CompModHelpers.cs (2)
301while (serializedComponents.Count > 0) 350while (serializedComponents.Count > 0)
Designers\StateDesigner.cs (1)
2310while (activities.Count > 0)
Designers\StateDesigner.TransitionInfo.cs (2)
132while (processingQueue.Count > 0) 170while (processingQueue.Count > 0)
Rules\Parser\Parser.cs (1)
760while (nsQueue.Count > 0)
StateMachineAction.cs (1)
257while (states.Count > 0)
StateMachineExecutionState.cs (5)
120return this.Actions.Count > 0; 149if (this.Actions.Count == 0) 164if (this.Actions.Count == 0) 185if (this.Actions.Count == 0) 191if (this.Actions.Count > 0)
StateMachineHelpers.cs (2)
221while (activities.Count > 0) 272while (states.Count > 0)
StateMachineWorkflowInstance.cs (2)
115while (states.Count > 0) 237while (activities.Count > 0)
System.Workflow.ComponentModel (21)
AuthoringOM\Activity.cs (5)
1132while (deserializedActivityRootsQueue.Count > 0) 1194while (activityRootsQueue.Count > 0) 1783while (completedActivities.Count > 0) 2308while (activityQueue.Count > 0) 2404while (queue.Count > 0)
AuthoringOM\ActivityExecutionContextCollection.cs (1)
74while (activityQueue.Count != 0)
AuthoringOM\ActivityExecutorDelegateInfo.cs (1)
221while (contextActivities.Count > 0)
AuthoringOM\Compiler\Validation\TransactionContextValidator.cs (2)
54while (nestedEnabledActivities.Count > 0) 103while (childrenQueue.Count != 0)
AuthoringOM\Design\ActivityDesigner.cs (1)
1075while (designers.Count > 0)
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (3)
830while (nodes.Count > 0) 860while (nodeCollections.Count > 0) 1081while (Activities.Count > 0)
AuthoringOM\Design\DocumentOutline.cs (1)
270while (nodesQ.Count > 0)
AuthoringOM\Filters\CompensationHandlingFilter.cs (2)
300while (completedActivities.Count > 0) 398while (completedActivities.Count > 0)
AuthoringOM\ScheduleChanges.cs (3)
182while (contextActivitiesQueue.Count > 0) 289while (queue.Count > 0) 317while (queue.Count > 0)
Shared\CompModHelpers.cs (2)
299while (serializedComponents.Count > 0) 348while (serializedComponents.Count > 0)
System.Workflow.Runtime (15)
Hosting\DefaultWorkflowSchedulerService.cs (4)
153int nToStart = Math.Min(maxSimultaneousWorkflows, waitingQueue.Count); 278p.RawValue = waitingQueue.Count; 293if (waitingQueue.Count == 0 || !running) 305p.RawValue = waitingQueue.Count;
Scheduler.cs (7)
61this.empty = ((this.normalPriorityEntriesQueue.Count == 0) && (this.highPriorityEntriesQueue.Count == 0)); 230if ((this.highPriorityEntriesQueue.Count > 0) || (this.normalPriorityEntriesQueue.Count > 0)) 242else if ((this.highPriorityEntriesQueue.Count > 0)) 254(this.normalPriorityEntriesQueue.Count > 0)) 349if (transactedEntries != null && transactedEntries.Count > 0)
System\Activities\Statements\InteropExecutor.cs (3)
421while (dynamicActivitiesQueue.Count > 0) 962if (this.atomicActivityQueue.Count > 0) 968this.schedulerQueue.Count > 0)
WorkflowExecutor.cs (1)
341while (dynamicActivitiesQueue.Count > 0)
System.WorkflowServices (2)
System\Workflow\Activities\Design\OperationPickerDialog.cs (1)
189while (interfacesQueue.Count > 0)
System\Workflow\Activities\ValidationHelper.cs (1)
237while (interfacesQueue.Count > 0)
System.Xml (1)
System\Xml\Serialization\CodeGenerator.cs (1)
239if (freeLocalQueue.Count == 0) {