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)
580Debug.Assert(_codeContexts.Count == 0); 1154if (_codeContexts.Count > 1 && KnownTypes.Types[(int)KnownElements.INameScope].IsAssignableFrom(cc.ElementType)) 1772if (_codeContexts.Count > 1 && KnownTypes.Types[(int)KnownElements.INameScope].IsAssignableFrom(cc.ElementType)) 2175if (_codeContexts.Count >= 2) 2535Debug.Assert(_codeContexts == null || _codeContexts.Count == 0, "mismatched CodeContexts"); 3037Debug.Assert(_codeContexts.Count == 0, "mismatched codecontext"); 3090if (_codeContexts.Count == 0)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
231if (null != _langSpaceStack && _langSpaceStack.Count > 0)
PresentationCore (6)
System\Windows\Input\InputManager.cs (3)
554if(_stagingArea.Count > 0) 567if(_stagingArea.Count > 0) 582if(_stagingArea.Count > 0)
System\Windows\Media\HitTestWithGeometryDrawingContextWalker.cs (3)
330Debug.Assert(_modifierStack.Count > 0); 340Debug.Assert((_modifierStack.Count > 0) || (_currentTransform == null)); 348Debug.Assert((_modifierStack.Count > 0) || (_currentClip == null));
PresentationFramework (13)
MS\Internal\Documents\ParentUndoUnit.cs (1)
323while (_units.Count > 0)
MS\Internal\Documents\UndoManager.cs (5)
264if (RedoStack.Count == 0 || (IParentUndoUnit)RedoStack.Peek() != unit) 379if (State != UndoState.Redo && State != UndoState.Undo && RedoStack.Count > 0) 574ArgumentOutOfRangeException.ThrowIfGreaterThan(count, RedoStack.Count); 892return RedoStack.Count; 1109if (RedoStack.Count > 0)
MS\Internal\IO\Packaging\XamlFilter.cs (1)
373Debug.Assert(_contextStack.Count == 0);
System\Windows\Documents\TextStore.cs (1)
3875int imeChangeCount = imeChangeStack.Count;
System\Windows\Markup\BamlRecordReader.cs (3)
2928if (0 != ParserContext.NameScopeStack.Count) 2931if ((NameScope.NameScopeFromObject(element) != null) && 0 != ParserContext.NameScopeStack.Count) 4441&& ParserContext.NameScopeStack.Count == 0
System\Windows\Markup\ParserContext.cs (2)
231if (null != _langSpaceStack && _langSpaceStack.Count > 0) 686if( _nameScopeStack != null && _nameScopeStack.Count == 0 )
ReachFramework (12)
AlphaFlattener\MetroDevice.cs (1)
131if (_stack.Count != 0)
Serialization\Manager\NGCSerializationManagerAsync.cs (3)
143if(_operationStack.Count > 0) 255if(_operationStack.Count > 0) 1011if (_operationStack.Count > 0)
Serialization\Manager\ReachObjectContext.cs (1)
140_recycableSerializableObjectContexts.Count == 0 ?
Serialization\Manager\XpsOMSerializationManagerAsync.cs (3)
113if (_operationStack.Count > 0) 210if (_operationStack.Count > 0) 468if (_operationStack.Count > 0)
Serialization\Manager\XpsSerializationManagerAsync.cs (3)
130if(_operationStack.Count > 0) 238if(_operationStack.Count > 0) 531if (_operationStack.Count > 0)
Serialization\VisualSerializer.cs (1)
2223if (_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)
196if (_threadStack == null || _threadStack.Count == 0 || _threadStack.Peek() != this) 384if ( _threadStack == null || _threadStack.Count == 0 )