Implemented interface member:
property
Count
System.Collections.ICollection.Count
1 override of Count
mscorlib (1)
system\collections\stack.cs (1)
239public override int Count {
100 references to Count
mscorlib (3)
system\collections\stack.cs (1)
242return _s.Count;
system\environment.cs (1)
158if (rh.currentlyLoading != null && rh.currentlyLoading.Count > 0 && rh.currentlyLoading.Contains(key)) {
system\security\policy\evidence.cs (1)
1871return m_enumerators.Count > 0 ? m_enumerators.Peek() as IEnumerator : null;
PresentationBuildTasks (8)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (7)
585Debug.Assert(_codeContexts.Count == 0); 1160if (_codeContexts.Count > 1 && KnownTypes.Types[(int)KnownElements.INameScope].IsAssignableFrom(cc.ElementType)) 1719if (_codeContexts.Count > 1 && KnownTypes.Types[(int)KnownElements.INameScope].IsAssignableFrom(cc.ElementType)) 2127if (_codeContexts.Count >= 2) 2483Debug.Assert(_codeContexts == null || _codeContexts.Count == 0, "mismatched CodeContexts"); 2923Debug.Assert(_codeContexts.Count == 0, "mismatched codecontext"); 2976if (_codeContexts.Count == 0)
Framework\System\Windows\Markup\ParserContext.cs (1)
246if (null != _langSpaceStack && _langSpaceStack.Count > 0)
PresentationCore (6)
Core\CSharp\System\Windows\Input\InputManager.cs (3)
759if(_stagingArea.Count > 0) 776if(_stagingArea.Count > 0) 795if(_stagingArea.Count > 0)
Core\CSharp\System\Windows\Media\HitTestWithGeometryDrawingContextWalker.cs (3)
346Debug.Assert(_modifierStack.Count > 0); 356Debug.Assert((_modifierStack.Count > 0) || (_currentTransform == null)); 364Debug.Assert((_modifierStack.Count > 0) || (_currentClip == null));
PresentationFramework (16)
src\Framework\MS\Internal\Documents\ParentUndoUnit.cs (1)
353while (_units.Count > 0)
src\Framework\MS\Internal\Documents\UndoManager.cs (5)
297if (RedoStack.Count == 0 || (IParentUndoUnit)RedoStack.Peek() != unit) 415if (State != UndoState.Redo && State != UndoState.Undo && RedoStack.Count > 0) 615if (count > RedoStack.Count || count <= 0) 935return RedoStack.Count; 1152if (RedoStack.Count > 0)
src\Framework\MS\Internal\IO\Packaging\XamlFilter.cs (1)
400Debug.Assert(_contextStack.Count == 0);
src\Framework\System\Windows\Documents\TextStore.cs (1)
3750int imeChangeCount = imeChangeStack.Count;
src\Framework\System\Windows\Markup\BamlReader.cs (3)
1212_deferableContentBlockDepth = _nodeStack.Count; 2003if (_deferableContentBlockDepth == _nodeStack.Count) 2041if (_deferableContentBlockDepth == _nodeStack.Count)
src\Framework\System\Windows\Markup\BamlRecordReader.cs (3)
2983if (0 != ParserContext.NameScopeStack.Count) 2986if ((NameScope.NameScopeFromObject(element) != null) && 0 != ParserContext.NameScopeStack.Count) 4515&& ParserContext.NameScopeStack.Count == 0
src\Framework\System\Windows\Markup\ParserContext.cs (2)
246if (null != _langSpaceStack && _langSpaceStack.Count > 0) 717if( _nameScopeStack != null && _nameScopeStack.Count == 0 )
System (4)
compmod\system\codedom\CodeTypeReference.cs (1)
210while( subTypeNames.Count > 0) {
net\System\Net\connectionpool.cs (3)
835_count = _stack.Count; 842if (0 <_stack.Count) { 848_count = _stack.Count;
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeAutoExpandHelper.cs (2)
46while (pathStack.Count > 0) 70if (pathStack.Count == 0)
System.Configuration (2)
System\Configuration\ConfigurationElement.cs (2)
1121if (_configRecord.SectionsStack.Count >0) { 1168if (_configRecord.SectionsStack.Count >0) {
System.Core (1)
System\Diagnostics\EventSchemaTraceListener.cs (1)
418if ((stk != null) && (stk.Count > 0)) {
System.Data (6)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\DesignerTreeAutoExpandHelper.cs (2)
46while (pathStack.Count > 0) 70if (pathStack.Count == 0)
fx\src\data\System\Data\XmlDataLoader.cs (4)
677int entryChild = childRowsStack.Count; // Memorize child stack level on entry 794while (entryChild < childRowsStack.Count) { // Process child rows we might have 830int entryChild = childRowsStack.Count; // Memorize child stack level on entry 1048while (entryChild < childRowsStack.Count) { // Process child rows we might have
System.Web (9)
Compilation\BuildProvidersCompiler.cs (1)
509while (stack.Count > 0) {
HttpContext.cs (1)
832if (_handlerStack == null || _handlerStack.Count == 0)
UI\Html32TextWriter.cs (1)
195if (FontStack.Count > 0) {
UI\ObjectStateFormatter.cs (1)
1190while (objectStack.Count > 0);
UI\Page.cs (2)
6339Debug.Assert(_dataBindingContext.Count > 0); 6348if ((_dataBindingContext == null) || (_dataBindingContext.Count == 0)) {
UI\TemplateParser.cs (3)
1230if (BuilderStack.Count > 1) { 1489if (BuilderStack.Count > 1) { 1511if (subBuilder == null && _builderStack.Count > 1 && !fSelfClosed) {
System.Web.DataVisualization (2)
Common\General\AxisScaleSegments.cs (2)
749 if(_oldAxisSettings.Count == 0) 795 if(_oldAxisSettings.Count > 0)
System.Web.Mobile (25)
UI\MobileControls\Adapters\HtmlMobileTextWriter.cs (20)
709while(state.TagsWritten.Count > 0) 720while(tmpStack.Count > 0) 732while(state.TagsWritten.Count > 0) 745while(tempStack.Count > 0) 754while(state.TagsWritten.Count > 0) 768while(tempStack.Count > 0) 774while(state.TagsWritten.Count > 0) 787while(tmpStack.Count > 0) 840while(state.TagsWritten.Count > 0) 853while(tempStack.Count > 0) 859while(state.TagsWritten.Count > 0) 872while(tempStack.Count > 0) 878while(state.TagsWritten.Count > 0) 888while(tempStack.Count > 0) 926if(_stack.Count == 0) 937return _stack.Count; 1014while(_tagsWritten.Count > 0) 1062_mark = _tagsWritten.Count; 1067while(_tagsWritten.Count > _mark) 1121while(_tagsWritten.Count > 0)
UI\MobileControls\Adapters\WmlMobileTextWriter.cs (2)
1585if (_layoutStack.Count > 0) 1625if (_formatStack.Count > 0)
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlMobileTextWriter.cs (2)
101if (_styleStack.Count > 0) { 198return _physicalCssClasses.Count == 0 ||
UI\MobileControls\Design\Util\SimpleParser.cs (1)
291return (_tagStack.Count == 0);
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataGrid.cs (1)
3833while(parentStack.Count != 0) {
System.Windows.Forms.DataVisualization (2)
Common\General\AxisScaleSegments.cs (2)
749 if(_oldAxisSettings.Count == 0) 795 if(_oldAxisSettings.Count > 0)
System.Xml (11)
System\Xml\Schema\ContentValidator.cs (3)
1008if (stack.Count == 0) { 1044if (stack.Count > 0) { 1098if (stack.Count > 0) {
System\Xml\Schema\SchemaCollectionCompiler.cs (1)
194while (this.complexTypeStack.Count > 0) {
System\Xml\Schema\SchemaSetCompiler.cs (1)
188while (this.complexTypeStack.Count > 0) {
System\Xml\Serialization\CodeGenerator.cs (6)
1960initElseIfStack = blockStack.Count; 1968initIfStack = blockStack.Count; 1972if (initIfStack == blockStack.Count) { 1977if (initElseIfStack == blockStack.Count) { 1990if (initIfStack == blockStack.Count) { 1995if (initElseIfStack == blockStack.Count) {
UIAutomationClient (2)
System\Windows\Automation\CacheRequest.cs (2)
206if (_threadStack == null || _threadStack.Count == 0 || _threadStack.Peek() != this) 394if ( _threadStack == null || _threadStack.Count == 0 )