Implemented interface members:
property
Count
System.Collections.Generic.IReadOnlyCollection<T>.Count
property
Count
System.Collections.ICollection.Count
193 references to Count
PresentationBuildTasks (3)
Framework\System\Windows\Markup\MarkupExtensionParser.cs (2)
1071if (bracketCharacterStack.Count == 0) 1109if (bracketCharacterStack.Count != 0)
Framework\System\Windows\Markup\StyleModeStack.cs (1)
40get { return _stack.Count - 1; }
PresentationCore (14)
Core\CSharp\MS\Internal\TextFormatting\TextStore.cs (1)
2723while (directionalEmbeddingStack.Count > 0)
Core\CSharp\System\Windows\EventRoute.cs (3)
342if (BranchNodeStack.Count == 0) 369if (BranchNodeStack.Count == 0) 396if (BranchNodeStack.Count == 0)
Core\CSharp\System\Windows\Media\Animation\Subtree.cs (3)
346else if (_timelineStack.Count > 0) 372while (_timelineStack.Count > 0) 394return _timelineStack.Count > 0;
Core\CSharp\System\Windows\Media\BoundsDrawingContextWalker.cs (3)
519Debug.Assert(_pushTypeStack.Count > 0); 529Debug.Assert(_transformStack.Count > 0); 540(_clipStack.Count > 0))
Core\CSharp\System\Windows\Media\DrawingDrawingContext.cs (2)
1096(_previousDrawingGroupStack.Count == 0)) 1196int stackCount = _previousDrawingGroupStack.Count;
Core\CSharp\System\Windows\Media\HitTestWithPointDrawingContextWalker.cs (1)
349Debug.Assert(_pointStack.Count > 0);
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (1)
493while (materialStack.Count > 0)
PresentationFramework (24)
src\Framework\MS\Internal\Data\LiveShapingBlock.cs (2)
322while (stack.Count > 0) 403while (stack.Count > 0)
src\Framework\MS\Internal\Globalization\BamlResourceDeserializer.cs (4)
72while (_bamlTreeStack.Count > 0 && _reader.Read()) 301if (_reader.Read() || _bamlTreeStack.Count > 0) 347if (_bamlTreeStack.Count > 0) 388if (stackForProperty.Count > 0)
src\Framework\MS\Internal\Globalization\BamlResourceSerializer.cs (1)
71while (_bamlTreeStack.Count > 0)
src\Framework\MS\Internal\Ink\EditingCoordinator.cs (3)
329Debug.Assert(_activationStack.Count == 1, "The behavior stack has to contain one behavior."); 1295Debug.Assert(_activationStack.Count <= 1, "The behavior stack has to contain at most one behavior when user is not editing."); 1365if ( _activationStack.Count > 0 )
src\Framework\System\Windows\Application.cs (2)
666if (s_NestedBamlLoadInfo.Count == 0) 2662if (s_NestedBamlLoadInfo != null && s_NestedBamlLoadInfo.Count > 0)
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
833DependencyObject branchNode = (branchNodeStack.Count > 0) ? branchNodeStack.Peek() : null;
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
304while ( transforms.Count > 0 )
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
812DependencyObject branchNode = (branchNodeStack.Count > 0) ? branchNodeStack.Peek() : null;
src\Framework\System\Windows\Documents\TextRangeBase.cs (3)
827if (listItemCounter != null && listItemCounter.Count > 0) 848if (listItemCounter.Count == 0) 855Invariant.Assert(listItemCounter.Count > 0, "expectinng listItemCounter.Count > 0");
src\Framework\System\Windows\Documents\XPSS0ValidatingLoader.cs (1)
102Hashtable validResources = (_validResources.Count > 0 ? _validResources.Peek() : null);
src\Framework\System\Windows\FrameworkContentElement.cs (1)
1422DependencyObject branchNode = branchNodeStack.Count > 0 ? branchNodeStack.Peek() : null;
src\Framework\System\Windows\FrameworkElement.cs (1)
3119DependencyObject branchNode = branchNodeStack.Count > 0 ? branchNodeStack.Peek() : null;
src\Framework\System\Windows\Markup\MarkupExtensionParser.cs (2)
1071if (bracketCharacterStack.Count == 0) 1109if (bracketCharacterStack.Count != 0)
src\Framework\System\Windows\Markup\StyleModeStack.cs (1)
40get { return _stack.Count - 1; }
System (4)
compmod\system\collections\generic\sortedset.cs (4)
143while (theirStack.Count != 0) { 241while (stack.Count != 0) { 1870while (stack.Count != 0) { 2290if (stack.Count == 0) {
System.Activities (28)
System\Activities\ActivityUtilities.cs (1)
920if (activitiesRemaining != null && activitiesRemaining.Count > 0)
System\Activities\Debugger\DebugController.cs (3)
80this.debugManager = new DebugManager(rootActivity, "Workflow", "Workflow", "DebuggerThread", false, this.host, ancestors.Count == 0); 82if (ancestors.Count > 0) 86while (ancestors.Count > 0)
System\Activities\Debugger\DebugManager.cs (2)
425if (stack.Count == 0) 577while (ancestors.Count > 0)
System\Activities\Debugger\StateManager.cs (2)
371while (this.callStack.Count > 0) 403if (this.callStack.Count > 0)
System\Activities\Debugger\XmlReaderWithSourceLocation.cs (2)
156this.contentStartLocationStack.Count > 0, 167UnitTestUtility.Assert(this.contentStartLocationStack.Count > 0, "Adding Text with out StartElement?");
System\Activities\DynamicUpdate\DynamicUpdateMap.cs (2)
599if (this.currentIdSpace != null && this.currentIdSpace.Count > 0) 601int[] idSegments = new int[this.currentIdSpace.Count];
System\Activities\QualifiedId.cs (1)
39while (ids.Count > 0)
System\Activities\Statements\Flowchart.cs (1)
256while (stack.Count > 0)
System\Activities\Statements\StateMachine.cs (1)
563while (stack.Count > 0)
System\Activities\Validation\ExtensionMethods.cs (2)
78if (bounds.Count != 0) 116} while (bounds.Count != 0);
System\Activities\XamlIntegration\ActivityBuilderXamlWriter.cs (2)
216if (this.pendingStates.Count > 0) 1109ObjectFrame currentFrame = this.objectStack.Count > 0 ? this.objectStack.Peek() : null;
System\Activities\XamlIntegration\DynamicActivityXamlReader.cs (1)
682if (this.stack.Count > 0)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (8)
370Fx.Assert(this.compiledDataContexts.Count == 2, "The stack of data contexts should contain the root argument default expression and accessor contexts"); 1753if (this.compiledDataContexts != null && this.compiledDataContexts.Count > 0) 1819if (this.compiledDataContexts != null && this.compiledDataContexts.Count > 0) 1855if (this.compiledDataContexts.Count > 0) 1881if (this.compiledDataContexts != null && this.compiledDataContexts.Count > 0) 2155if (this.compiledDataContexts == null || this.compiledDataContexts.Count == 0) 2190if (this.compiledDataContexts.Count > 0) 2268if (this.compiledDataContexts.Count >= 1)
System.Activities.Presentation (10)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (1)
240if (stack.Count == 0 && viewStateInfo.Count > 0)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\VisualTreeUtils.cs (1)
289while (stack.Count > 0)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (7)
651if (editingScopes.Count > 0) 680return this.editingScopes.Count == 0 && !this.Context.Services.GetService<UndoEngine>().IsBookmarkInPlace; 686EditingScope outerScope = editingScopes.Count > 0 ? (EditingScope)editingScopes.Peek() : null; 788if (editingScopes.Count == 0 && this.immediateEditingScope != null) 814if (editingScopes.Count == 0 && !(modelEditingScopeImpl is ImmediateEditingScope) && modelEditingScopeImpl.HasModelChanges) 832if (this.EditingScopeCompleted != null && editingScopes.Count == 0 && this.immediateEditingScope == null) 837Fx.Assert(editingScopes.Count == 0 || (modelEditingScopeImpl.ItemsAdded.Count == 0 && modelEditingScopeImpl.ItemsRemoved.Count == 0), "Inner editing scope shouldn't have changes applied.");
System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (1)
145if (this.fragmentStack.Count == 0)
System.Core (11)
Microsoft\Scripting\Actions\BindingRestrictions.cs (4)
163while (_tests.Count > 0) { 170while (_tests.Count > 0 && _tests.Peek().Depth == depth) { 208} while (stack.Count > 0); 356} while (stack.Count > 0);
Microsoft\Scripting\Ast\DebugViewWriter.cs (3)
78return _stack.Count > 0 ? _stack.Peek() : 0; 148Debug.Assert(_stack.Count == 0); 1141Debug.Assert(_stack.Count == 0);
Microsoft\Scripting\Compiler\StackSpiller.Temps.cs (4)
93return _usedTemps != null ? _usedTemps.Count : 0; 100Debug.Assert(_usedTemps == null || mark <= _usedTemps.Count); 105while (mark < _usedTemps.Count) { 114Debug.Assert(_usedTemps == null || _usedTemps.Count == 0);
System.Data (12)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (1)
240if (stack.Count == 0 && viewStateInfo.Count > 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\VisualTreeUtils.cs (1)
289while (stack.Count > 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (7)
651if (editingScopes.Count > 0) 680return this.editingScopes.Count == 0 && !this.Context.Services.GetService<UndoEngine>().IsBookmarkInPlace; 686EditingScope outerScope = editingScopes.Count > 0 ? (EditingScope)editingScopes.Peek() : null; 788if (editingScopes.Count == 0 && this.immediateEditingScope != null) 814if (editingScopes.Count == 0 && !(modelEditingScopeImpl is ImmediateEditingScope) && modelEditingScopeImpl.HasModelChanges) 832if (this.EditingScopeCompleted != null && editingScopes.Count == 0 && this.immediateEditingScope == null) 837Fx.Assert(editingScopes.Count == 0 || (modelEditingScopeImpl.ItemsAdded.Count == 0 && modelEditingScopeImpl.ItemsRemoved.Count == 0), "Inner editing scope shouldn't have changes applied.");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (1)
145if (this.fragmentStack.Count == 0)
fx\src\data\System\Data\SqlClient\TdsParserSafeHandles.cs (2)
228if (_packets.Count > 0) { 251while (_packets.Count > 0) {
System.Data.Entity (16)
System\Data\Common\CommandTrees\Internal\Validator.cs (1)
52Debug.Assert(this.variableScopes.Count == 0, "Variable scope stack left in inconsistent state");
System\Data\Common\Utils\Helpers.cs (1)
167while (nodes.Count > 0)
System\Data\Mapping\Update\Internal\KeyManager.cs (1)
235while (stack.Count > 0)
System\Data\Objects\ELinq\Funcletizer.cs (1)
707if (stack.Count > 0)
System\Data\Objects\Internal\ObjectSpanRewriter.cs (1)
564if (_navSources.Count > 0)
System\Data\Query\InternalTrees\Command.cs (2)
170if (m_freeVarVecs.Count == 0) 240m_freeVarVecEnumerators.Count == 0)
System\Data\Query\PlanCompiler\CTreeGenerator.cs (4)
469PlanCompiler.Assert(_bindingScopes.Count > 0, "ExitExpressionBindingScope called on empty ExpressionBindingScope stack"); 500PlanCompiler.Assert(_bindingScopes.Count > 0, "ExitGroupByScope called on empty ExpressionBindingScope stack"); 558PlanCompiler.Assert(_varScopes.Count > 0, "ExitVarDefScope called on empty VarDefScope stack"); 606if (_varScopes.Count > 0)
System\Data\Query\PlanCompiler\PreProcessor.cs (1)
1535if (m_entityTypeScopes.Count == 0)
System\Data\Query\PlanCompiler\TransformationRules.cs (1)
481PlanCompiler.Assert(m_relOpAncestors.Count != 0, "The RelOp ancestors stack is empty when post processing a RelOp subtree");
System\Data\SqlClient\SqlGen\SqlGenerator.cs (3)
241get { return isParentAJoinStack.Count == 0 ? false : isParentAJoinStack.Peek(); } 546Debug.Assert(selectStatementStack.Count == 0); 547Debug.Assert(isParentAJoinStack.Count == 0);
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\FixUpCollection.cs (1)
494if ( context.Count <= 0 )
System.Data.Services (4)
System\Data\Services\Serializers\JsonWriter.cs (4)
72if (this.scopes.Count == 0) 134if (this.scopes.Count == 0) 426if (this.scopes.Count != 0) 458if (this.scopes.Count != 0)
System.Data.Services.Client (12)
System\Data\Services\Client\ALinq\InputBinder.cs (3)
131if (innerParamRef != this.inputParameter || nestedAccesses.Count == 0) 141while (nestedAccesses.Count > 0) 196while (nestedAccesses.Count > 0)
System\Data\Services\Client\ALinq\PathBox.cs (1)
82Debug.Assert(parameterExpressions.Count > 0);
System\Data\Services\Client\AtomMaterializer.cs (3)
1473while (segments.Count > 0) 1514Debug.Assert(segments.Count == elements.Count, "segments.Count == elements.Count -- otherwise they're out of sync");
System\Data\Services\Client\ProjectionPathBuilder.cs (2)
81Debug.Assert(this.parameterExpressionTypes.Count > 0, "this.parameterExpressionTypes.Count > 0"); 119if (this.parameterExpressions.Count == 0)
System\Data\Services\Client\Xml\XmlWrappingReader.cs (3)
65if (this.xmlBaseStack != null && this.xmlBaseStack.Count > 0) 476if (this.xmlBaseStack.Count > 0) 548if (this.xmlBaseStack != null && this.xmlBaseStack.Count > 0 && this.reader.Depth == this.xmlBaseStack.Peek().Depth)
System.Data.Services.Design (2)
System\Data\EntityModel\Emitters\FixUpCollection.cs (1)
490if ( context.Count <= 0 )
System\Data\EntityModel\EntityClassGenerator.cs (1)
563while (pending.Count > 0);
System.Data.SqlXml (7)
System\Xml\Xsl\XPath\XPathParser.cs (1)
56Debug.Assert(posInfo.Count == 0, "PushPosInfo() and PopPosInfo() calls have been unbalanced");
System\Xml\Xsl\Xslt\InvokeGenerator.cs (1)
87while (iterStack.Count != 0)
System\Xml\Xsl\Xslt\QilGenerator.cs (4)
2390return vars.Count; 2399Debug.Assert(0 <= varScope && varScope <= vars.Count); 2400for (int i = vars.Count - varScope; i-- != 0; ) { 2408Debug.Assert(vars.Count == 0, "Accumulated variables left unclaimed");
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (1)
1112while (newTemplates.Count > 0) {
System.Runtime.DurableInstancing (2)
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (2)
1193Fx.Assert(isFirstCommand || this.executionStack.Count > 0, "The first command should always remain at the top of the stack."); 1313else if (this.executionStack.Count > 0)
System.ServiceModel (2)
System\ServiceModel\Description\MetadataExchangeClient.cs (2)
405if (resolveCallState.StackedRetrievers.Count > 0) 1235if (this.resolveCallState.StackedRetrievers.Count > 0)
System.ServiceModel.Internals (8)
System\Runtime\InternalBufferManager.cs (2)
517if (this.items.Count > 0) 530if (this.items.Count < this.Limit)
System\Runtime\SynchronizedPool.cs (6)
369while (items.Count > value) 390if (items.Count == maxCount) 400if (this.items.Count > 0) 404if (this.items.Count > 0) 415if (this.items.Count < this.MaxCount) 419if (this.items.Count < this.MaxCount)
System.Web (7)
AspNetSynchronizationContext.cs (1)
94Debug.Assert(_state.SyncControlDisassociationActions.Count > 0, "DisassociateFromCurrentThread() was called on a thread which hadn't previously called AssociateWithCurrentThread().");
BufferAllocator.cs (1)
274if (_buffers.Count > 0) {
UI\WebControls\Wizard.cs (5)
1549if (_historyStack == null || _historyStack.Count == 0) { 1557if (previousIndex == index && _historyStack.Count > 0) { 1564if (previousIndex == index && _historyStack.Count > 1) { 1963if (_historyStack == null || _historyStack.Count == 0 || 1971bool containsHistory = _historyStack != null && _historyStack.Count > 0;
System.Web.DataVisualization (2)
Common\General\AxisScale.cs (2)
1165if (this._intervalsStore.Count == 0) 1196System.Diagnostics.Debug.Assert(this._intervalsStore.Count == 5, "Fail in interval store count");
System.Web.Entity.Design (2)
System\Data\WebControls\Design\Util\WizardForm.cs (2)
326if (_panelHistory.Count > 1) 374if (_panelHistory.Count == 1)
System.Windows.Forms (6)
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (1)
738while(itemsStack.Count > 0) {
winforms\Managed\System\WinForms\ToolStripManager.cs (5)
1929if (mergeHistory.MergeHistoryItemsStack.Count > 0) { 1936if (mergeHistory != null && mergeHistory.MergeHistoryItemsStack.Count > 0) { 2104while (targetToolStrip.MergeHistoryStack.Count > 0 && !foundToolStrip) { 2121while (history.MergeHistoryItemsStack.Count > 0) { 2139while (reApply.Count > 0) {
System.Windows.Forms.DataVisualization (2)
Common\General\AxisScale.cs (2)
1165if (this._intervalsStore.Count == 0) 1196System.Diagnostics.Debug.Assert(this._intervalsStore.Count == 5, "Fail in interval store count");
System.Workflow.Activities (3)
Role\DirectoryGroupQuery.cs (1)
29while (entries.Count != 0)
Role\DirectoryRedirect.cs (1)
61while (stack.Count != 0)
Rules\Parser\Symbol.cs (1)
144while (names.Count > 0)
System.Workflow.ComponentModel (3)
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
777while (types.Count > 0)
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
1131while (types.Count > 0)
AuthoringOM\Design\MessageFilters\GlyphManager.cs (1)
384while (designerStack.Count > 0)
System.Xml (5)
System\Xml\Schema\ContentValidator.cs (2)
419if (nodeStack.Count == 0) 487if (contextStack.Count == 0)
System\Xml\Schema\DtdParser.cs (1)
1185if (localFrames.Count > 0) {
System\Xml\Schema\DtdParserAsync.cs (1)
809if (localFrames.Count > 0) {
System\Xml\XPath\Internal\PrecedingSibling.cs (1)
54while (inputStk.Count != 0) {
WindowsBase (2)
Base\MS\Internal\PriorityQueue.cs (2)
157if(_cacheReusableChains.Count > 0) 298if(_cacheReusableChains.Count < 10)
XamlBuildTask (1)
Microsoft\Build\Tasks\Xaml\ClassImporter.cs (1)
96bool isRootElement = (currentTypes.Count == 1);