Implemented interface member:
2 overrides of Count
System.Collections.NonGeneric (1)
System\Collections\Stack.cs (1)
237public override int Count
System.Diagnostics.TraceSource (1)
System\Diagnostics\CorrelationManager.cs (1)
65public override int Count => _stack.Value?.Count ?? 0;
56 references to Count
dotnet-svcutil-lib (12)
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReference.cs (1)
235while (subTypeNames.Count > 0)
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (3)
1176if (_stack.Count == 0) 1221if (_stack.Count > 0) 1284if (_stack.Count > 0)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (1)
238while (_complexTypeStack.Count > 0)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (1)
232while (_complexTypeStack.Count > 0)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (6)
2045_initElseIfStack = _blockStack.Count; 2054_initIfStack = _blockStack.Count; 2059if (_initIfStack == _blockStack.Count) 2065if (_initElseIfStack == _blockStack.Count) 2080if (_initIfStack == _blockStack.Count) 2086if (_initElseIfStack == _blockStack.Count)
PresentationBuildTasks (8)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (7)
581Debug.Assert(_codeContexts.Count == 0); 1156if (_codeContexts.Count > 1 && KnownTypes.Types[(int)KnownElements.INameScope].IsAssignableFrom(cc.ElementType)) 1774if (_codeContexts.Count > 1 && KnownTypes.Types[(int)KnownElements.INameScope].IsAssignableFrom(cc.ElementType)) 2177if (_codeContexts.Count >= 2) 2537Debug.Assert(_codeContexts == null || _codeContexts.Count == 0, "mismatched CodeContexts"); 3039Debug.Assert(_codeContexts.Count == 0, "mismatched codecontext"); 3092if (_codeContexts.Count == 0)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
232if (null != _langSpaceStack && _langSpaceStack.Count > 0)
PresentationCore (6)
System\Windows\Input\InputManager.cs (3)
558if(_stagingArea.Count > 0) 571if(_stagingArea.Count > 0) 586if(_stagingArea.Count > 0)
System\Windows\Media\HitTestWithGeometryDrawingContextWalker.cs (3)
331Debug.Assert(_modifierStack.Count > 0); 341Debug.Assert((_modifierStack.Count > 0) || (_currentTransform == null)); 349Debug.Assert((_modifierStack.Count > 0) || (_currentClip == null));
PresentationFramework (13)
MS\Internal\Documents\ParentUndoUnit.cs (1)
336while (_units.Count > 0)
MS\Internal\Documents\UndoManager.cs (5)
265if (RedoStack.Count == 0 || (IParentUndoUnit)RedoStack.Peek() != unit) 380if (State != UndoState.Redo && State != UndoState.Undo && RedoStack.Count > 0) 575ArgumentOutOfRangeException.ThrowIfGreaterThan(count, RedoStack.Count); 893return RedoStack.Count; 1110if (RedoStack.Count > 0)
MS\Internal\IO\Packaging\XamlFilter.cs (1)
374Debug.Assert(_contextStack.Count == 0);
System\Windows\Documents\TextStore.cs (1)
3885int imeChangeCount = imeChangeStack.Count;
System\Windows\Markup\BamlRecordReader.cs (3)
2932if (0 != ParserContext.NameScopeStack.Count) 2935if ((NameScope.NameScopeFromObject(element) != null) && 0 != ParserContext.NameScopeStack.Count) 4448&& ParserContext.NameScopeStack.Count == 0
System\Windows\Markup\ParserContext.cs (2)
232if (null != _langSpaceStack && _langSpaceStack.Count > 0) 687if( _nameScopeStack != null && _nameScopeStack.Count == 0 )
ReachFramework (12)
AlphaFlattener\MetroDevice.cs (1)
132if (_stack.Count != 0)
Serialization\Manager\NGCSerializationManagerAsync.cs (3)
144if(_operationStack.Count > 0) 256if(_operationStack.Count > 0) 1012if (_operationStack.Count > 0)
Serialization\Manager\ReachObjectContext.cs (1)
141_recycableSerializableObjectContexts.Count == 0 ?
Serialization\Manager\XpsOMSerializationManagerAsync.cs (3)
114if (_operationStack.Count > 0) 211if (_operationStack.Count > 0) 469if (_operationStack.Count > 0)
Serialization\Manager\XpsSerializationManagerAsync.cs (3)
131if(_operationStack.Count > 0) 239if(_operationStack.Count > 0) 532if (_operationStack.Count > 0)
Serialization\VisualSerializer.cs (1)
2224if (_tcoStack.Count == 0) // end of page
System.Collections.NonGeneric (1)
System\Collections\Stack.cs (1)
243return _s.Count;
System.Configuration.ConfigurationManager (2)
System\Configuration\ConfigurationElement.cs (2)
1014if (_configRecord.SectionsStack.Count > 0) 1059if (_configRecord.SectionsStack.Count > 0)
UIAutomationClient (2)
System\Windows\Automation\CacheRequest.cs (2)
197if (_threadStack == null || _threadStack.Count == 0 || _threadStack.Peek() != this) 385if ( _threadStack == null || _threadStack.Count == 0 )