Implemented interface member:
property
Count
System.Collections.ICollection.Count
5 overrides of Count
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (5)
726
public override int
Count
=> _list.Count;
1172
public override int
Count
1669
public override int
Count
=> _list.Count;
1927
public override int
Count
=> _list.Count;
2308
public override int
Count
1015 references to Count
dotnet-svcutil-lib (113)
FrameworkFork\Microsoft.CodeDom\System\CodeNamespaceImportCollection.cs (1)
55
return _data.
Count
;
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReference.cs (3)
254
for (int i = 0; i < typeArgumentList.
Count
; i++)
270
else if (typeArgumentList.
Count
> 0)
272
for (int i = 0; i < typeArgumentList.
Count
; i++)
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReader.cs (3)
1280
else if (_defaultAttributes.
Count
> 0)
2085
_attributeCount += _defaultAttributes.
Count
;
2169
for (int i = 0; i < _defaultAttributes.
Count
; i++)
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentSchemaValidator.cs (1)
440
for (int i = 0; i < _defaultAttributes.
Count
; i++)
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDocument.cs (1)
259
if (elementList.
Count
== 0)
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNamedNodeMap.SmallXmlNodeList.cs (1)
32
return list.
Count
;
FrameworkFork\Microsoft.Xml\Xml\schema\AstTree.cs (11)
152
get { return _stack.
Count
; }
218
for (int i = 0; i < _stack.
Count
; ++i)
240
for (int i = 0; i < _stack.
Count
; ++i)
272
for (int i = 0; i < _stack.
Count
; ++i)
314
_axisStack = new ArrayList(axisTree.SubtreeArray.
Count
); // defined length
316
for (int i = 0; i < axisTree.SubtreeArray.
Count
; ++i)
334
for (int i = 0; i < _axisStack.
Count
; ++i)
371
for (int i = 0; i < _axisStack.
Count
; ++i)
387
for (int i = 0; i < _axisStack.
Count
; ++i)
521
for (int i = 0; i < _fAxisArray.
Count
; ++i)
597
for (int i = 0; i < AstArray.
Count
; ++i)
FrameworkFork\Microsoft.Xml\Xml\schema\basevalidator.cs (1)
185
Debug.Assert(names.
Count
> 0);
FrameworkFork\Microsoft.Xml\Xml\schema\ConstraintStruct.cs (1)
118
if (_KSpointer < _KSs.
Count
)
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (4)
97
Debug.Assert(_particles.
Count
== _last + 1);
137
Debug.Assert(_particles.
Count
== _last + 1);
271
get { return _positions.
Count
; }
1107
for (int i = 0; i < grp.Members.
Count
; ++i)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (2)
1164
if (values.
Count
< _minListSize)
3142
for (int i = 0; i < dt.Restriction.Enumeration.
Count
; ++i)
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (11)
880
for (int i = 0; i < restriction.Patterns.
Count
; ++i)
1096
for (int i = 0; i < enumeration.
Count
; ++i)
1197
for (int i = 0; i < enumeration.
Count
; ++i)
1268
for (int i = 0; i < enumeration.
Count
; ++i)
1340
for (int i = 0; i < enumeration.
Count
; ++i)
1433
for (int i = 0; i < enumeration.
Count
; ++i)
1443
for (int i = 0; i < enumeration.
Count
; ++i)
1562
for (int i = 0; i < enumeration.
Count
; ++i)
1631
for (int i = 0; i < enumeration.
Count
; ++i)
1692
for (int i = 0; i < enumeration.
Count
; ++i)
1722
for (int i = 0; i < enumeration.
Count
; ++i)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (2)
372
if (col != null && col.
Count
> 0)
543
if (col != null && col.
Count
> 0)
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (1)
149
for (int i = 0; i < _redefinedList.
Count
; ++i)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (4)
424
if (substitutionGroup.IsProcessing && substitutionGroup.Members.
Count
> 0)
442
for (int i = 0; i < substitutionGroup.Members.
Count
; ++i)
463
else if (substitutionGroup.Members.
Count
> 0)
475
for (int i = 0; i < substitutionGroup.Members.
Count
; ++i)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (5)
476
if (substitutionGroup.IsProcessing && substitutionGroup.Members.
Count
> 0)
496
for (int i = 0; i < substitutionGroup.Members.
Count
; ++i)
506
for (int j = 0; j < g.Members.
Count
; ++j)
522
for (int i = 0; i < newMembers.
Count
; ++i)
1235
for (int i = 0; i < substitutionGroup.Members.
Count
; ++i)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (12)
525
for (int i = 0; i < schemaToRemove.ImportedNamespaces.
Count
; i++)
550
for (int i = 0; i < needToCheckSchemaList.
Count
; i++)
554
if (mainSchema.ImportedNamespaces.
Count
> 0)
568
for (int i = 0; i < schemaToRemove.ImportedSchemas.
Count
; ++i)
769
for (int i = 0; i < schema.ImportedSchemas.
Count
; ++i)
977
if (schema.ImportedSchemas.
Count
> 0)
980
for (int i = 0; i < schema.ImportedSchemas.
Count
; ++i)
1083
for (int i = 0; i < schema.ImportedSchemas.
Count
; ++i)
1118
for (int i = 0; i < substGroup.Members.
Count
; ++i)
1141
for (int i = 0; i < substitutionGroup.Members.
Count
; ++i)
1150
for (int j = 0; j < g.Members.
Count
; ++j)
1504
for (int j = 0; j < removalList.
Count
; ++j)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (15)
361
for (int i = 0; i < schema.ImportedSchemas.
Count
; ++i)
822
if (names == null || names.
Count
== 0)
828
Debug.Assert(names.
Count
> 0);
2276
for (int k = 0; k < constraintStructures[j].axisFields.
Count
; ++k)
2320
for (int j = 0; j < constraintStructures[i].axisFields.
Count
; ++j)
2367
for (int j = 0; j < constraints[i].axisFields.
Count
; ++j)
2545
if (names == null || names.
Count
== 0)
2558
Debug.Assert(names.
Count
> 0);
2598
if (names == null || names.
Count
== 0)
2608
Debug.Assert(names.
Count
> 0);
2631
if (expected.
Count
== 1)
2637
for (int i = 1; i < expected.
Count
; i++)
2673
for (int i = 1; i < expected.
Count
; ++i)
2686
if (expected.
Count
== 1)
2709
for (int i = 0; i < expected.
Count
; i++)
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (1)
801
if (_unhandledAttributes.
Count
!= 0)
FrameworkFork\Microsoft.Xml\Xml\schema\xsdvalidator.cs (3)
951
for (int k = 0; k < constraints[j].axisFields.
Count
; ++k)
996
for (int j = 0; j < constraints[i].axisFields.
Count
; ++j)
1050
for (int j = 0; j < constraints[i].axisFields.
Count
; ++j)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifiers.cs (1)
187
Array array = Array.CreateInstance(type, _list.
Count
);
FrameworkFork\Microsoft.Xml\Xml\Serialization\ImportContext.cs (5)
160
for (int i = 0; i < list.
Count
; i++)
208
for (int i = 0; i < list.
Count
; i++)
221
for (int i = 0; i < list.
Count
; i++)
226
tmp += (int)cachedHash / list.
Count
;
237
for (int i = 0; i < items.
Count
; i++)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (2)
1389
if (srcSchemas.
Count
== 0)
1393
if (srcSchemas.
Count
> 1)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaObjectWriter.cs (4)
222
for (int i = 0; i < attrs.
Count
; i++)
292
for (int i = 0; i < list.
Count
; i++)
606
for (int i = 0; i < list.
Count
; i++)
660
for (int ia = 0; ia < a.
Count
; ia++)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (1)
610
if (constants.
Count
== 0)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (5)
592
if (srcSchemas.
Count
== 0)
596
if (srcSchemas.
Count
> 1)
903
for (int i = 0; i < members.
Count
; i++)
1216
if (constants.
Count
== 0)
2309
return _list.
Count
;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (3)
1619
for (int i = 0; i < _fixups.
Count
; i++)
1626
for (int i = 0; i < _collectionFixups.
Count
; i++)
2056
if (xmlNodeList.
Count
<= skippableNodeCount)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (1)
1456
for (int i = 0; i < _referencesToWrite.
Count
; i++)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\querybuilder.cs (3)
379
if (root.ArgumentList != null && root.ArgumentList.
Count
> 0)
405
if (root.ArgumentList != null && root.ArgumentList.
Count
> 0)
444
int numArgs = args != null ? args.
Count
: 0;
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathMultyIterator.cs (1)
23
this.arr = new ResetableIterator[inputArray.
Count
];
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathParser.cs (1)
540
int argCount = argList.
Count
;
FrameworkFork\System.ServiceModel\Internals\System\Runtime\UrlUtility.cs (1)
594
int numValues = (values != null) ? values.
Count
: 0;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\TimeBoundedCache.cs (2)
316
for (int i = 0; i < keysToBeRemoved.
Count
; ++i)
400
for (int i = 0; i < expiredItems.
Count
; ++i)
Microsoft.Build (1)
Logging\BaseConsoleLogger.cs (1)
569
if (itemTypeList.
Count
== 0)
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\ProjectData.vb (1)
27
If (lChannel < m_Files.
Count
) Then
PresentationBuildTasks (81)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (1)
653
if (itemToRemove.
Count
> 0)
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (2)
1335
if (localRefAppdefList.
Count
> 0)
1340
if (localRefPageList.
Count
> 0)
MS\Internal\Localization\LocalizationParserHooks.cs (1)
100
if (_commentList.
Count
> 0)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (9)
257
if (_pendingLocalFiles != null && _pendingLocalFiles.
Count
== 1)
279
if (_pendingLocalFiles != null && _pendingLocalFiles.
Count
> 0)
293
Debug.Assert(_pendingLocalFiles == null || _pendingLocalFiles.
Count
== 0);
1159
if ((elementName == null || !isAllowedNameScope) && (events == null || events.
Count
== 0))
1310
var paths = new List<string>(ReferenceAssemblyList?.
Count
?? 0);
1311
if (ReferenceAssemblyList != null && ReferenceAssemblyList.
Count
> 0)
1313
for (int i = 0; i < ReferenceAssemblyList.
Count
; i++)
1328
if (ReferenceAssemblyList != null && ReferenceAssemblyList.
Count
> 0)
1330
for (int i = 0; i < ReferenceAssemblyList.
Count
; i++)
MS\Internal\Tasks\CompilerLocalReference.cs (1)
275
if (alMarkupPages.
Count
> 0)
MS\Internal\Tasks\CompilerWrapper.cs (1)
255
for (int i = 0; i < _mc.ReferenceAssemblyList.
Count
; i++)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecordWriter.cs (20)
351
((KeyDeferRecord)_deferKeys[_deferKeys.
Count
-1]).RecordList.Add(deferRecord);
494
KeyDeferRecord keyRecord = (KeyDeferRecord)(_deferKeys[_deferKeys.
Count
-1]);
534
for (int i = 0; i < record.RecordList.
Count
; i++)
567
KeyDeferRecord keyRecord = (KeyDeferRecord)(_deferKeys[_deferKeys.
Count
-1]);
601
KeyDeferRecord keyRecord = (KeyDeferRecord)(_deferKeys[_deferKeys.
Count
-1]);
699
if (asmList.
Count
> 0)
701
short[] assemblyIds = new short[asmList.
Count
];
703
for (int i = 0; i < asmList.
Count
; i++)
835
KeyDeferRecord keyRecord = (KeyDeferRecord)(_deferKeys[_deferKeys.
Count
-1]);
838
Debug.Assert(keyRecord.RecordList.
Count
== 0, "Should have empty record list");
1167
KeyDeferRecord keyDeferRecord = ((KeyDeferRecord)_deferKeys[_deferKeys.
Count
-1]);
1491
((KeyDeferRecord)_deferKeys[_deferKeys.
Count
-1]).RecordList.Add(deferRec);
1525
for (int h = 0; h<_deferElement.
Count
; h++)
1544
for (int i = 0; i<_deferKeys.
Count
; i++)
1557
keyRecord.RecordList.
Count
> 0)
1559
for (int j = 0; j < keyRecord.RecordList.
Count
; j++)
1608
for (int j = 0; j<_deferValues.
Count
; j++)
1617
deferKeyRecord.RecordList.
Count
> 0)
1634
Debug.Assert(keyIndex == _deferKeys.
Count
,
1685
KeyDeferRecord keyDeferRecord = ((KeyDeferRecord)_deferKeys[_deferKeys.
Count
-1]);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\MarkupExtensionParser.cs (22)
310
if (tokens.
Count
== 1)
316
if (tokens.
Count
== 3 &&
610
ArrayList xamlNodes = new ArrayList(markupExtensionList.
Count
* 5);
612
for (int i = 0; i<markupExtensionList.
Count
; i++)
782
(list.
Count
== 1 ||
783
(list.
Count
> 1 && !(list[1] is String) && ((Char)list[1] == ','))))
820
ArrayList xamlNodes = new ArrayList(complexDefAttributesList.
Count
* 5);
821
for (int i = 0; i<complexDefAttributesList.
Count
; i++)
858
(list.
Count
== 1 ||
859
(list.
Count
> 1 && !(list[1] is String) && ((Char)list[1] == ','))))
1091
else if (list.
Count
== 0)
1097
else if (list[list.
Count
- 1] is Char)
1110
parameterName = (string) list[list.
Count
- 1];
1130
else if (list.
Count
> 0 && (list[list.
Count
-1] is Char))
1230
if (list != null && listIndex < list.
Count
)
1240
for (; listIndex < list.
Count
; listIndex+=2)
1250
if (list.
Count
> (listIndex+1) &&
1338
if (list != null && listIndex < list.
Count
)
1340
ArrayList propertyNamesSoFar = new ArrayList(list.
Count
/4);
1342
for (int k = listIndex; k < list.
Count
; k+=4)
1344
if (k > (list.
Count
-3) ||
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserStack.cs (8)
61
object o = this[
Count
- 1];
62
RemoveAt(
Count
- 1);
88
get { return
Count
> 0 ? this[
Count
- 1] : null; }
96
get { return
Count
> 1 ? this[
Count
- 2] : null; }
104
get { return
Count
> 2 ? this[
Count
- 3] : null; }
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (16)
2938
for (int i = 0; i < xamlNodes.
Count
; i++)
2950
for (int i = 0; i < xamlNodes.
Count
; i++)
5830
Debug.Assert((_nodeIndex == 0 && _xamlNodes.
Count
== 0 ) || (_nodeIndex < _xamlNodes.
Count
),
5832
if (_xamlNodes.
Count
> 0)
5837
if (_nodeIndex == _xamlNodes.
Count
)
5850
Debug.Assert((_nodeIndex == 0 && _xamlNodes.
Count
== 0 ) || (_nodeIndex < _xamlNodes.
Count
),
5861
get { return _xamlNodes.
Count
; }
5878
_insertionIndex = value ? _xamlNodes.
Count
: -1;
5919
if (_xamlNodes.
Count
> 0)
5921
for (int i = _xamlNodes.
Count
- 1; i >= _nodeIndex; i--)
5932
if (_nodeIndex >= _xamlNodes.
Count
)
5936
Debug.Assert(_nodeIndex == _xamlNodes.
Count
, "NodeIndex is larger than node count.");
6084
_typeConverterCandidateIndex = _xamlNodes.
Count
- 1;
6108
_typeConverterCandidateIndex = _xamlNodes.
Count
- 1;
PresentationCore (17)
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (2)
155
int rangeCount = _byteRangesAvailable.
Count
/ 2;
663
if (_requestsOnWait != null && _requestsOnWait.
Count
> 0)
MS\Internal\IO\Packaging\NetStream.cs (3)
698
System.Diagnostics.Trace.TraceInformation("NetStream.GetData() total byteranges:{0} after merging:{1}", _unmergedBlocks, _byteRangesAvailable.
Count
);
910
for (int i = 0; i + 1 < ranges.
Count
; i++)
921
if (i + 1 >= ranges.
Count
)
MS\Internal\TextFormatting\FullTextLine.cs (3)
1715
if (boundsList.
Count
> 0)
1723
bounds = new TextBounds[boundsList.
Count
];
1724
for (int i = 0; i < boundsList.
Count
; i++)
MS\Internal\TextFormatting\SimpleTextLine.cs (2)
274
while(count < runs.
Count
)
400
int left = runs != null ? runs.
Count
: 0;
MS\Internal\TextFormatting\TextStore.cs (1)
1784
Plsrun plsrun = (Plsrun)((uint)_lsrunList.
Count
+ Plsrun.FormatAnchor);
System\Windows\Input\AccessKeyManager.cs (6)
70
if (elements.
Count
== 0)
562
for (int i = 0; i < elements.
Count
; )
589
List<IInputElement> copy = new List<IInputElement>(elements.
Count
);
591
for (int i = 0; i < elements.
Count
; )
676
for (int i = 0; i < elements.
Count
; i++)
697
for (int i = 0; i < elements.
Count
; i++)
PresentationFramework (388)
MS\Internal\Annotations\Anchoring\PathNode.cs (1)
313
while (fp.Node.Equals(sp.Node) && sp._children.
Count
> 0)
MS\Internal\Controls\InnerItemCollectionView.cs (4)
231
for (int i = _rawList.
Count
- 1; i >= 0; --i)
522
for (int k = 0; k < _rawList.
Count
; ++k)
618
get { return _rawList.
Count
; }
623
get { return _viewList.
Count
; }
MS\Internal\Data\DefaultAsyncDataDispatcher.cs (1)
38
for (int i = 0; i < _list.
Count
; ++i)
MS\Internal\Data\SortFieldComparer.cs (1)
88
int n = al.
Count
;
MS\Internal\Data\ViewManager.cs (4)
271
for (int k = 0; k < al.
Count
; ++k)
276
return (al.
Count
> 0 || this.Count == 0);
818
for (int k = 0; k < al.
Count
; ++k)
823
return (al.
Count
> 0 || foundViewTableDirt);
MS\Internal\DataStreams.cs (1)
238
for (int subStreamIndex = 0; subStreamIndex < subStreams.
Count
; ++subStreamIndex)
MS\Internal\Documents\DocumentGrid.cs (1)
1493
for (int i = 0; i < visiblePages.
Count
; i++)
MS\Internal\PtsHost\PtsContext.cs (2)
82
for (index = 0; index < _pageBreakRecords.
Count
; index++)
100
for (index = 0; index < _pages.
Count
; index++)
MS\Internal\Utility\TraceLog.cs (2)
40
if (_log.
Count
== _size)
50
for (int k=0; k<_log.
Count
; ++k)
System\Windows\Controls\PasswordTextContainer.cs (8)
311
for (index = 0; index < _positionList.
Count
; index++)
721
for (; index < _positionList.
Count
; index++)
761
for (; index < _positionList.
Count
; index++)
786
for (index = _positionList.
Count
-1; index >= 0; index--)
810
for (index = 0; index < _positionList.
Count
; index++)
843
for (index = 0; index < _positionList.
Count
; index++)
901
Debug.WriteLine($"{_positionList.
Count
} entries.");
903
for (index = 0; index < _positionList.
Count
; index++)
System\Windows\Controls\RadioButton.cs (3)
105
if (elements.
Count
== 0)
116
for (int i = 0; i < elements.
Count
; )
143
for (int i = 0; i < elements.
Count
; )
System\Windows\Controls\TextBlock.cs (1)
1971
for (int index = 0; index < inlineObjects.
Count
; index++)
System\Windows\Data\BindingOperations.cs (1)
258
for (int i = 0; i < batch.
Count
; i++)
System\Windows\Data\CompositeCollection.cs (2)
127
for (int k=0, n=InternalList.
Count
; k < n; ++k)
283
return InternalList.
Count
;
System\Windows\Documents\AdornerLayer.cs (14)
214
while (i < adornerInfos.
Count
)
239
while (i < adornerInfos.
Count
)
259
if (adornerInfos == null || adornerInfos.
Count
== 0)
262
Adorner[] adorners = new Adorner[adornerInfos.
Count
];
264
for (int i = 0; i < adornerInfos.
Count
; i++)
422
while (j < adornerInfos.
Count
)
457
while (j < adornerInfos.
Count
)
643
if (adornerInfos.
Count
> 1)
665
int insertionIndex = _children.IndexOf(((AdornerInfo)adornerInfos[adornerInfos.
Count
- 1]).Adorner) + 1;
684
while (adornerInfos.
Count
> 0)
723
for (int i = 0; i < adornerInfos.
Count
; i++)
809
for (int i = 0; i < removeList.
Count
; i++)
912
if (adornerInfos.
Count
== 0)
928
while (i < adornerInfos.
Count
)
System\Windows\Documents\CompositionAdorner.cs (4)
146
for (int i = 0; i < _attributeRanges.
Count
; i++)
154
if (attributeRange.CompositionLines.
Count
== 0)
233
for (int j = 0; j < attributeRange.CompositionLines.
Count
; j++)
339
for (int i = 0; i < _attributeRanges.
Count
; i++)
System\Windows\Documents\FixedFlowMap.cs (2)
219
if (range.
Count
== 0)
228
if (!element.FixedNode.Equals(range[range.
Count
- 1]))
System\Windows\Documents\Highlights.cs (1)
390
return (_layers == null) ? 0 : _layers.
Count
;
System\Windows\Documents\MoveSizeWinEventHandler.cs (2)
65
for (int i = 0; i < _arTextStore.
Count
; i++)
104
return _arTextStore.
Count
;
System\Windows\Documents\RtfFormatStack.cs (7)
52
Invariant.Assert(
Count
!= 0);
54
if (
Count
> 0)
56
RemoveAt(
Count
- 1);
62
return
Count
> 0 ? EntryAt(
Count
- 1) : null;
67
int index =
Count
- 1 - fromTop;
69
if (index < 0 || index >=
Count
)
System\Windows\Documents\RtfToXamlReader.cs (149)
2831
return _cellFormats.
Count
;
3578
for (int i = 0; i <
Count
; i++)
3593
for (int i = 0; i <
Count
; i++)
3614
for (int i = 0; i <
Count
; i++)
3642
for (int i = 0; i <
Count
; i++)
3681
if (
Count
== 0)
3687
for (int i =
Count
- 1; i >= 0; i--)
3697
return EntryAt(
Count
- 1);
3926
if (index >= 0 && index <
Count
)
3954
for (int i = 0; i <
Count
; i++)
3968
return
Count
- 1;
3973
if (index >= 0 && index <
Count
)
4034
return EntryAt(
Count
- 1);
4174
if (index >
Count
)
4176
index =
Count
- 1;
4178
return (ListLevel)(
Count
> index && index >= 0 ? this[index] : null);
4204
return
Count
> 0 ? EntryAt(
Count
- 1) : null;
4334
for (int i = 0; i <
Count
; i++)
4370
return
Count
> 0 ? EntryAt(
Count
- 1) : null;
4509
for (int i = 0; i <
Count
; i++)
4545
return
Count
> 0 ? EntryAt(
Count
- 1) : null;
5319
if (ColumnStateArray != null && ColumnStateArray.
Count
> 0)
5327
for (int i = 0; i < ColumnStateArray.
Count
; i++)
5576
for (int i = 0; i < dnaRows.
Count
; i++)
5594
for (int k = 0; k < cols.
Count
; k++)
6221
for (int i = 0; i <
Count
; i++)
6283
InsertNode(
Count
, documentNode);
6290
if (
Count
> 0)
6292
Excise(
Count
- 1, 1);
6300
for (int i =
Count
- 1; i >= 0; i--)
6315
return ((
Count
> 0) && (EntryAt(
Count
- 1).Type == documentNodeType));
6327
Debug.Assert(nStart + nChild <
Count
);
6328
if (nStart + nChild >=
Count
)
6330
nChild =
Count
- nStart - 1;
6413
Debug.Assert(
Count
== 0 || (nStart >= 0 && nStart <
Count
));
6414
if (nStart >=
Count
|| nStart < 0)
6424
Debug.Assert(nStart + nChild <
Count
);
6425
if (nStart + nChild >=
Count
)
6427
nChild =
Count
- nStart - 1;
6474
Debug.Assert(
Count
== 0 || (nStart >= 0 && nStart <
Count
));
6475
if (nStart >=
Count
|| nStart < 0)
6485
Debug.Assert(nStart + nChild <
Count
);
6486
if (nStart + nChild >=
Count
)
6488
nChild =
Count
- nStart - 1;
6533
for (int nAt = 0; nAt <
Count
; nAt++)
6541
Debug.Assert(
Count
== 0 || (index >= 0 && index <
Count
));
6542
Debug.Assert(index + nChildCount <
Count
);
6543
if (index >=
Count
|| index < 0 || index + nChildCount >=
Count
)
6571
Debug.Assert(
Count
== 0 || (index >= 0 && index <
Count
));
6572
if (index >=
Count
|| index < 0)
6587
for (int i =
Count
- 1; i > index; i--)
6597
CloseAtHelper(index,
Count
- index - 1);
6607
for (int nAt = 0; nAt <
Count
; nAt++)
6616
Debug.Assert(nAt + dn.ChildCount <
Count
);
6630
for (int nAt = 0; nAt <
Count
; nAt++)
6656
for (int nAt = 0; nAt <
Count
; nAt++)
6673
for (int i = _dnaOpen.
Count
- 1; i >= 0; i--)
6706
for (int i = _dnaOpen.
Count
- 1; i >= 0; i--)
6725
for (int i = _dnaOpen.
Count
- 1; i >= 0; i--)
6759
for (int i = 0; i < _dnaOpen.
Count
; i++)
6769
for (int i = nShape; i < _dnaOpen.
Count
; i++)
6788
if (mlHave.
Count
> 0 || mlWant.
Count
== 0)
6794
for (int i =
Count
- 1; i >= 0; i--)
6848
if (ml.
Count
== 1 && bAllBullet)
6858
for (int i =
Count
- 1; i >= 0; i--)
6891
for (int i = _dnaOpen.
Count
- 1; i >= 0; i--)
6907
for (int j =
Count
- 1; j >= 0; j--)
6939
for (int i = _dnaOpen.
Count
- 1; i >= 0; i--)
6973
return FindPendingFrom(documentNodeType,
Count
- 1, nLow);
6985
for (int i = _dnaOpen.
Count
- 1; i >= 0; i--)
7003
for (i = 0; i <
Count
; i++)
7008
for (i = 1; i <
Count
; i++)
7031
int i =
Count
- 1;
7041
int nCull =
Count
- (i + 1);
7052
int i =
Count
;
7072
for (nAt++; nAt <
Count
; nAt++)
7144
for (; nAt <
Count
; nAt++)
7167
return
Count
> 0 ? EntryAt(
Count
- 1) : null;
7339
int nCount = dnaCells.
Count
< rf.CellCount ? dnaCells.
Count
: rf.CellCount;
7386
while (nColsSeen < csa.
Count
)
7414
for (int i = 0; i < dnaTables.
Count
; i++)
7418
if (csa == null || csa.
Count
== 0)
7422
int nDim = csa.
Count
;
7431
for (int j = 0; j < dnaRows.
Count
; j++)
7441
if (dnaCells.
Count
< nCount)
7443
nCount = dnaCells.
Count
;
7454
for (int k = 0; k < nCount && kCSA < dnaSpanCells.
Count
; k++)
7787
int nStartCount = _converterState.RtfFormatStack.
Count
;
7816
while (_converterState.RtfFormatStack.
Count
> 2 && _converterState.RtfFormatStack.
Count
> nStartCount)
7950
for (int i = 0; i < dna.
Count
; i++)
7970
while (dna.
Count
> 0)
7972
DocumentNode dnLast = dna.EntryAt(dna.
Count
- 1);
7976
dna.Excise(dna.
Count
- 1, 1);
7987
if (dna.
Count
> 0)
7989
DocumentNode dnLast = dna.EntryAt(dna.
Count
- 1);
8018
for (int i = 0; i < dna.
Count
; i++)
8052
for (int i = dna.
Count
- 1; i >= 0 && dnFieldBegin == null; i--)
8256
for (int i = nInsertAt; !bBlock && i < dna.
Count
; i++)
8748
dna.CloseAt(dna.
Count
- 1);
8942
if (_converterState.RtfFormatStack.
Count
> 2)
9814
int nNoOpValue = dna.
Count
;
9815
int nInsertAt = dna.
Count
; // Default insertion location
9826
&& nInsertAt + dn.ChildCount == dna.
Count
)
9853
int nInsertAt = dna.
Count
; // Default insertion location
9881
Debug.Assert(nInsertAt >= 0 && nChildren > 0 && nInsertAt + nChildren - 1 < dna.
Count
);
9911
for (int i = dna.
Count
- 1; i >= 0; i--)
9927
dna.Excise(dna.
Count
- nExcise, nExcise);
10061
for (int i = formats.
Count
- 1; i >= 0; i--)
10084
for (int i = formats.
Count
- 1; i >= 0; i--)
10975
Debug.Assert(dna.
Count
> 0 && dna.EntryAt(dna.
Count
- 1).Type == DocumentNodeType.dnParagraph);
10977
int nInsertAt = dna.
Count
- 1;
10999
nInsertAt = dna.
Count
- 1;
11032
for (int i = 0; i < mlHave.
Count
; i++)
11055
if (levels == null || levels.
Count
== 0)
11096
DocumentNode dnPara = dna.EntryAt(dna.
Count
- 1);
11132
int nLists = mlHave.
Count
;
11133
int nLevel = mlWant.
Count
;
11171
if (nMatch < mlCouldHave.
Count
&& mlCouldWant.
Count
> nMatch)
11188
if (dna.
Count
> 1 && dna.EntryAt(dna.
Count
- 2).Type == DocumentNodeType.dnListItem)
11395
dna.CloseAt(dna.
Count
- 1);
11422
dna.CloseAt(dna.
Count
- 1);
11430
dna.CloseAt(dna.
Count
- 1);
11431
dna.CoalesceChildren(_converterState, dna.
Count
- 1);
11503
for (; nMatch < mlHave.
Count
&& nMatch < mlWant.
Count
; nMatch++)
11529
int nLists = mlHave.
Count
;
11530
int nLevel = mlWant.
Count
;
11551
mlHave.RemoveRange(mlHave.
Count
- 1, 1);
11563
if (nLevel <= mlWant.
Count
)
11565
mlWant[nLists] = mlWant[mlWant.
Count
- 1];
11572
nInsertAt = dna.
Count
- 1;
11596
nInsertAt = dna.
Count
- 1;
11611
nInsertAt = dna.
Count
- 1;
System\Windows\Documents\Speller.cs (7)
713
if (segments.
Count
!= 0)
1141
if (segments.
Count
== 0)
1186
sTextRange = (SpellerInteropBase.ITextRange)segments[Math.Min(i, segments.
Count
-1)];
1253
sTextRange = (SpellerInteropBase.ITextRange)segments[segments.
Count
- 1];
1258
index = segments.
Count
;
1263
for (index = 0; index < segments.
Count
; index++)
1278
if (index < segments.
Count
- 1 &&
System\Windows\Documents\SpellerStatusTable.cs (13)
90
for (index = FindIndex(searchStart.CreateStaticPointer(), LogicalDirection.Forward); index >= 0 && index < _runList.
Count
; index++)
200
for (i = index+1; i < _runList.
Count
; i++)
339
maxIndex = _runList.
Count
;
486
if (index < _runList.
Count
- 1 && GetRun(index + 1).RunType == runType)
541
if (index < _runList.
Count
- 1 && GetRun(index + 1).RunType == run.RunType)
620
for (i = index; i < _runList.
Count
; i++)
635
if (index < _runList.
Count
)
642
if (index < _runList.
Count
&& GetRun(index).RunType == RunType.Dirty)
676
Invariant.Assert(_runList.
Count
>= 1, "Run list should never be empty!");
682
for (i = 0; i < _runList.
Count
; i++)
686
if (_runList.
Count
== 1)
719
for (i = 0; i < _runList.
Count
; i++)
758
if (index + 1 < _runList.
Count
)
System\windows\Documents\TextEditor.cs (1)
318
for (int i = 0; i < _registeredEditingTypes.
Count
; i++)
System\windows\Documents\TextEditorTyping.cs (1)
157
for (int i = 0; i < threadLocalStore.PendingInputItems.
Count
; i++)
System\Windows\Documents\TextMapOffsetErrorLogger.cs (3)
62
SegmentCount = segments.
Count
,
63
SegmentStartsAndLengths = new SegmentInfo[segments.
Count
],
80
for (int i = 0; i < segments.
Count
; i++)
System\Windows\Documents\TextStore.cs (8)
853
if (_preparedattributes.
Count
== 0)
873
if (_preparedattributes.
Count
== 0)
902
if (i >= _preparedattributes.
Count
)
1534
for (dwCookie = 0; dwCookie < _mouseSinks.
Count
; dwCookie++)
1548
if (_mouseSinks.
Count
== 1)
1565
for (i = 0; i < _mouseSinks.
Count
; i++)
1572
if (_mouseSinks.
Count
== 0)
3046
for (i = 0; (i < _mouseSinks.
Count
) && (!eaten); i++)
System\Windows\Documents\XamlToRtfParser.cs (8)
118
if (xamlToRtfError == XamlToRtfError.None && _xamlTagStack.
Count
!= 0)
505
if (
Count
> 0)
507
RemoveAt(
Count
- 1);
513
if (
Count
== 0)
518
string top = (string)this[
Count
- 1];
591
length = (_xamlParsePoints.
Count
- 1) / 2;
626
int nLength = (_xamlParsePoints.
Count
- 1) / 2;
671
int nLength = (_xamlParsePoints.
Count
- 1) / 2;
System\Windows\Documents\XamlToRtfWriter.cs (55)
200
if (lltComputed.
Count
> i)
225
for (i = 0; i < dna.
Count
; i++)
230
Debug.Assert(openLists.
Count
> 0);
231
if (openLists.
Count
> 0)
233
openLists.RemoveRange(openLists.
Count
- 1, 1);
234
if (openLists.
Count
> 0)
236
DocumentNode dn1 = (DocumentNode)openLists[openLists.
Count
- 1];
276
if (bFirst && openLists.
Count
> 0)
279
DocumentNode dnList = (DocumentNode)openLists[openLists.
Count
- 1];
280
int iLevel = openLists.
Count
;
295
for (j = 0; j < listLevelTable.
Count
; j++)
305
if (j == listLevelTable.
Count
)
313
if (listLevelTable.
Count
> nListStyles)
315
nListStyles = listLevelTable.
Count
;
324
for (j = 0; j < openLists.
Count
; j++)
356
for (int i = 0; i < dna.
Count
; i++)
393
long[] openCounts = new long[dna.
Count
];
394
long[] openStarts = new long[dna.
Count
];
399
for (int i = 0; i < dna.
Count
; i++)
404
Debug.Assert(openLists.
Count
> 0);
405
if (openLists.
Count
> 0)
407
openLists.RemoveRange(openLists.
Count
- 1, 1);
408
if (openLists.
Count
> 0)
410
DocumentNode dn1 = (DocumentNode)openLists[openLists.
Count
- 1];
429
openCounts[openLists.
Count
- 1] = dn.FormatState.StartIndex - 1;
430
openStarts[openLists.
Count
- 1] = dn.FormatState.StartIndex;
435
Debug.Assert(openLists.
Count
> 0);
438
if (openLists.
Count
> 0)
440
openCounts[openLists.
Count
- 1] += 1;
444
if (dn.FormatState.ListLevel > 0 && openLists.
Count
> 0)
446
DocumentNode dnList = (DocumentNode)openLists[openLists.
Count
- 1];
447
long nCount = openCounts[openLists.
Count
- 1];
448
long nStart = openStarts[openLists.
Count
- 1];
461
for (int i = 0; i < dna.
Count
; i++)
498
for (int i = 0; i < dna.
Count
; i++)
530
for (i = 0; i < fontTable.
Count
; i++)
554
for (int i = 0; i < colorTable.
Count
; i++)
575
if (listTable.
Count
> 0)
580
for (int i = 0; i < listTable.
Count
; i++)
591
for (int j = 0; j < listLevelTable.
Count
; j++)
646
if (listOverrideTable.
Count
> 0)
650
for (int i = 0; i < listOverrideTable.
Count
; i++)
1467
if (cellArray.
Count
> 0)
1509
for (int i = 0; i < cellArray.
Count
; i++)
1523
for (int i = 0; i < cellArray.
Count
; i++)
1715
for (int cellIndex = 0; cellIndex < cellArray.
Count
; cellIndex++)
1751
for (int i = 0; i < dnaRows.
Count
; i++)
1757
for (int j = 0; j < dnaCells.
Count
; j++)
1763
while (nColExtra < spanCounts.
Count
&& ((int)spanCounts[nColExtra]) > 0)
1780
while (nColHere < spanCounts.
Count
&& ((int)spanCounts[nColHere]) > 0)
1794
if (nColHere < spanCounts.
Count
)
1818
while (nColExtra < spanCounts.
Count
)
1843
while (nColHere < spanCounts.
Count
)
1982
while (i < dna.
Count
)
3524
fontTableEntry = fontTable.DefineEntry(fontTable.
Count
+ 1);
System\Windows\FrameworkElement.cs (2)
1434
exactMatch = keys.
Count
;
1446
int bestMatch = keys.
Count
; // index of best match so far
System\Windows\Interop\HwndHost.cs (2)
104
if(_hooks.
Count
== 0)
1114
for(int i = 0, nCount = _hooks.
Count
; i < nCount; i++)
System\Windows\Markup\BamlReader.cs (2)
190
get { return _properties.
Count
; }
376
if (_propertiesIndex < _properties.
Count
- 1)
System\Windows\Markup\BamlRecordReader.cs (7)
458
int stackDepth = ReaderContextStack.
Count
;
509
Debug.Assert( stackDepth == ReaderContextStack.
Count
);
537
Debug.Assert(0 == ReaderContextStack.
Count
); // if not zero we missed an EndElement
1050
if (RootList.
Count
== 0)
1479
paramCount = paramList.
Count
;
4064
for (int i = contextStack.
Count
-1; i >= 0; i--)
4595
if (RootList.
Count
== 0)
System\Windows\Markup\BamlRecordWriter.cs (17)
351
((KeyDeferRecord)_deferKeys[_deferKeys.
Count
-1]).RecordList.Add(deferRecord);
494
KeyDeferRecord keyRecord = (KeyDeferRecord)(_deferKeys[_deferKeys.
Count
-1]);
534
for (int i = 0; i < record.RecordList.
Count
; i++)
567
KeyDeferRecord keyRecord = (KeyDeferRecord)(_deferKeys[_deferKeys.
Count
-1]);
601
KeyDeferRecord keyRecord = (KeyDeferRecord)(_deferKeys[_deferKeys.
Count
-1]);
835
KeyDeferRecord keyRecord = (KeyDeferRecord)(_deferKeys[_deferKeys.
Count
-1]);
838
Debug.Assert(keyRecord.RecordList.
Count
== 0, "Should have empty record list");
1167
KeyDeferRecord keyDeferRecord = ((KeyDeferRecord)_deferKeys[_deferKeys.
Count
-1]);
1491
((KeyDeferRecord)_deferKeys[_deferKeys.
Count
-1]).RecordList.Add(deferRec);
1525
for (int h = 0; h<_deferElement.
Count
; h++)
1544
for (int i = 0; i<_deferKeys.
Count
; i++)
1557
keyRecord.RecordList.
Count
> 0)
1559
for (int j = 0; j < keyRecord.RecordList.
Count
; j++)
1608
for (int j = 0; j<_deferValues.
Count
; j++)
1617
deferKeyRecord.RecordList.
Count
> 0)
1634
Debug.Assert(keyIndex == _deferKeys.
Count
,
1685
KeyDeferRecord keyDeferRecord = ((KeyDeferRecord)_deferKeys[_deferKeys.
Count
-1]);
System\Windows\Markup\BamlWriter.cs (2)
952
for (int i=0; i < _markupExtensionNodes.
Count
; i++)
1297
if (_nodeTypeStack.
Count
> 0)
System\Windows\Markup\MarkupExtensionParser.cs (22)
310
if (tokens.
Count
== 1)
316
if (tokens.
Count
== 3 &&
610
ArrayList xamlNodes = new ArrayList(markupExtensionList.
Count
* 5);
612
for (int i = 0; i<markupExtensionList.
Count
; i++)
782
(list.
Count
== 1 ||
783
(list.
Count
> 1 && !(list[1] is String) && ((Char)list[1] == ','))))
820
ArrayList xamlNodes = new ArrayList(complexDefAttributesList.
Count
* 5);
821
for (int i = 0; i<complexDefAttributesList.
Count
; i++)
858
(list.
Count
== 1 ||
859
(list.
Count
> 1 && !(list[1] is String) && ((Char)list[1] == ','))))
1091
else if (list.
Count
== 0)
1097
else if (list[list.
Count
- 1] is Char)
1110
parameterName = (string) list[list.
Count
- 1];
1130
else if (list.
Count
> 0 && (list[list.
Count
-1] is Char))
1230
if (list != null && listIndex < list.
Count
)
1240
for (; listIndex < list.
Count
; listIndex+=2)
1250
if (list.
Count
> (listIndex+1) &&
1338
if (list != null && listIndex < list.
Count
)
1340
ArrayList propertyNamesSoFar = new ArrayList(list.
Count
/4);
1342
for (int k = listIndex; k < list.
Count
; k+=4)
1344
if (k > (list.
Count
-3) ||
System\Windows\Markup\ParserStack.cs (11)
61
object o = this[
Count
- 1];
62
RemoveAt(
Count
- 1);
70
return this[
Count
- 1];
88
get { return
Count
> 0 ? this[
Count
- 1] : null; }
96
get { return
Count
> 1 ? this[
Count
- 2] : null; }
104
get { return
Count
> 2 ? this[
Count
- 3] : null; }
113
get { return
Count
> 3 ? this[
Count
- 4] : null; }
System\Windows\Markup\XamlStream.cs (2)
375
if (bufferArray.
Count
<= bufferIndex)
377
Debug.Assert(bufferArray.
Count
== bufferIndex,"Need to allocate more than one buffer");
System\Windows\Navigation\NavigationService.cs (10)
553
for (int i = ChildNavigationServices.
Count
- 1; i >= 0; i--)
1314
if (_recursiveNavigateList.
Count
> 0)
1318
return BindUriHelper.GetUriRelativeToPackAppBase((_recursiveNavigateList[_recursiveNavigateList.
Count
- 1] as NavigateQueueItem).Source);
1839
if (clearRecursiveNavigations && _recursiveNavigateList.
Count
> 0)
1870
for (; i < _childNavigationServices.
Count
; ++i)
1881
if (++i < _childNavigationServices.
Count
)
1883
for (; i < _childNavigationServices.
Count
; ++i)
1893
Debug.Assert(PendingNavigationList.
Count
== 0,
2105
Debug.Assert(PendingNavigationList.
Count
== 0,
2464
if (!(PendingNavigationList.
Count
== 0 && _navStatus == NavigationStatus.Navigated))
System\Windows\WindowCollection.cs (4)
111
return _list.
Count
;
149
clone = new WindowCollection(_list.
Count
);
150
for (int i = 0; i < _list.
Count
; i++)
186
for (int i = 0; i < _list.
Count
; i++)
ReachFramework (13)
AlphaFlattener\BrushProxy.cs (5)
389
str = str + "BrushList[" + _brushList.
Count
+ "]";
534
if (list.
Count
== 0)
678
if ((_brushList != null) && (_brushList.
Count
!= 0))
2133
int count = _brushList.
Count
;
2169
if (first && (count == _brushList.
Count
))
AlphaFlattener\DrawingContext.cs (2)
482
if (from >= brushes.
Count
) // Only single brush left
495
Debug.Assert(one.BrushList.
Count
== 2, "Only two brushes allowed here");
AlphaFlattener\Flattener.cs (2)
98
if ((children == null) || (children.
Count
== 0))
136
if (children.
Count
== 1)
AlphaFlattener\Primitive.cs (2)
483
if (cp.Children.
Count
> 0)
2089
for (int index = 0; index < _children.
Count
; index++)
Serialization\VisualSerializer.cs (2)
273
for (int i = 0; i < _objects.
Count
; i++)
297
return _objnams[_objects.
Count
- 1] as string;
System.CodeDom (1)
System\CodeDom\CodeNamespaceImportCollection.cs (1)
24
public int Count => _data.
Count
;
System.Collections.NonGeneric (3)
System\Collections\CollectionBase.cs (2)
60
return _list.
Count
;
151
OnInsert(InnerList.
Count
, value);
System\Collections\ReadOnlyCollectionBase.cs (1)
25
get { return InnerList.
Count
; }
System.Collections.Specialized (15)
System\Collections\Specialized\NameObjectCollectionBase.cs (7)
211
for (int i = _entriesArray.
Count
- 1; i >= 0; i--)
223
for (int i = _entriesArray.
Count
- 1; i >= 0; i--)
367
return _entriesArray.
Count
;
382
if (array.Length - index < _entriesArray.
Count
)
408
int n = _entriesArray.
Count
;
423
int n = _entriesArray.
Count
;
442
int n = _entriesArray.
Count
;
System\Collections\Specialized\NameValueCollection.cs (2)
114
int n = (list != null) ? list.
Count
: 0;
142
int n = (list != null) ? list.
Count
: 0;
System\Collections\Specialized\OrderedDictionary.cs (5)
89
return _objectsArray.
Count
;
164
if (_objectsArray == null || index < 0 || index >= _objectsArray.
Count
)
286
for (int i = 0; i < _objectsArray.
Count
; i++)
569
int ICollection.Count => _objects.
Count
;
602
for (int i = 0; i < _objects.
Count
; i++)
System\Collections\Specialized\StringCollection.cs (1)
39
return data.
Count
;
System.ComponentModel.TypeConverter (9)
System\ComponentModel\Design\DesignerOptionService.cs (3)
148
return _children.
Count
;
201
var propArray = new PropertyDescriptor[propList.
Count
];
218
if (index < 0 || index >= _children.
Count
)
System\ComponentModel\ListSortDescriptionCollection.cs (1)
62
public int Count => _sorts.
Count
;
System\ComponentModel\TypeDescriptor.cs (5)
1134
var descriptors = new EventDescriptor[filteredEvents.
Count
];
1371
var descriptors = new PropertyDescriptor[filteredProperties.
Count
];
2250
Attribute[] attrArray = new Attribute[list.
Count
];
2256
PropertyDescriptor[] propArray = new PropertyDescriptor[list.
Count
];
2262
EventDescriptor[] eventArray = new EventDescriptor[list.
Count
];
System.Configuration.ConfigurationManager (26)
System\Configuration\BaseConfigurationRecord.cs (2)
213
&& ((_locationSections == null) || (_locationSections.
Count
== 0));
362
while (i < _parent._locationSections.
Count
)
System\Configuration\ConfigurationElement.cs (1)
487
if (errorsList.
Count
== 0) return null;
System\Configuration\ConfigurationElementCollection.cs (5)
119
public int Count => Items.
Count
- _removedItemCount;
511
for (int index = 0; index < Items.
Count
; index++)
660
if (index > Items.
Count
)
934
for (int checkIndex = 0; checkIndex < Items.
Count
; checkIndex++)
941
for (int removeIndex = Items.
Count
- 1; removeIndex >= 0; removeIndex--)
System\Configuration\ConfigurationErrorsException.cs (3)
97
this((ConfigurationException)(coll.
Count
> 0 ? coll[0] : null))
99
if (coll.
Count
<= 1) return;
100
_errors = new ConfigurationException[coll.
Count
];
System\Configuration\ConfigurationPropertyCollection.cs (4)
19
for (int index = 0; index < _items.
Count
; index++)
28
public int Count => _items.
Count
;
51
for (int index = 0; index < _items.
Count
; index++)
66
for (int index = 0; index < _items.
Count
; index++)
System\Configuration\ElementInformation.cs (2)
73
count = arrayList.
Count
;
76
ConfigurationException[] exceptionList = new ConfigurationException[arrayList.
Count
];
System\Configuration\MgmtConfigurationRecord.cs (2)
781
while (i < _locationSections.
Count
)
1913
while (i < _locationSections.
Count
)
System\Configuration\SectionUpdates.cs (4)
217
if (unretrievedGroups.
Count
== 0)
220
string[] groupNames = new string[unretrievedGroups.
Count
];
238
if (newsGroups.
Count
== 0)
241
string[] groupNames = new string[newsGroups.
Count
];
System\Configuration\SettingsPropertyValueCollection.cs (3)
50
if (ipos >= _values.
Count
)
77
if (ipos >= _values.
Count
)
109
public int Count { get { return _values.
Count
; } }
System.Data.Common (75)
System\Data\BaseCollection.cs (1)
21
public virtual int Count => List.
Count
;
System\Data\ConstraintCollection.cs (11)
49
if (index >= 0 && index < List.
Count
)
442
int oldLength = List.
Count
;
444
Constraint[] constraints = new Constraint[List.
Count
];
491
if (array.Length - index < _list.
Count
)
493
for (int i = 0; i < _list.
Count
; ++i)
504
int constraintCount = List.
Count
;
518
int constraintCount = List.
Count
;
535
int constraintCount = List.
Count
;
550
int constraintCount = List.
Count
;
625
int constraintCount = List.
Count
;
669
int constraintCount = List.
Count
;
System\Data\DataColumnCollection.cs (10)
122
if (_list.Capacity < capacity + _list.
Count
)
124
_list.Capacity = capacity + _list.
Count
;
270
column.SetOrdinalInternal(_list.
Count
- 1);
285
int count = _list.
Count
;
589
int oldLength = _list.
Count
;
591
DataColumn[] columns = new DataColumn[_list.
Count
];
662
if (array.Length - index < _list.
Count
)
667
for (int i = 0; i < _list.
Count
; ++i)
678
int columnCount = _list.
Count
;
782
int count = _list.
Count
;
System\Data\DataRelationCollection.cs (9)
295
if (array.Length - index < alist.
Count
)
300
for (int i = 0; i < alist.
Count
; ++i)
311
int relationCount = List.
Count
;
338
int count = List.
Count
;
559
if (index >= 0 && index < _relations.
Count
)
650
for (int i = 0; i < _relations.
Count
; i++)
740
if (index >= 0 && index < _relations.
Count
)
786
for (int i = 0; i < _relations.
Count
; i++)
842
for (int i = 0; i < _relations.
Count
; i++)
System\Data\DataTableCollection.cs (13)
109
for (int i = 0; i < _list.
Count
; i++)
126
for (int i = 0; i < _list.
Count
; i++)
465
int oldLength = _list.
Count
;
466
DataTable[] tables = new DataTable[_list.
Count
];
515
int count = _list.
Count
;
537
int count = _list.
Count
;
559
if (array.Length - index < _list.
Count
)
563
for (int i = 0; i < _list.
Count
; ++i)
574
int tableCount = _list.
Count
;
618
Debug.Assert(_list.
Count
== tableList.Count, "Both lists should have equal numbers of tables");
633
int count = _list.
Count
;
670
int count = _list.
Count
;
740
int tableCount = _list.
Count
;
System\Data\XMLDiffLoader.cs (3)
240
for (int i = 0; i < dt.
Count
; i++)
279
if (_tables.
Count
== 0)
282
for (int i = 0; i < _tables.
Count
; i++)
System\Data\xmlsaver.cs (20)
324
for (int i = 0; i < tables.
Count
; i++)
425
for (int i = 0; i < dt.
Count
; i++)
507
for (int i = 0; i < _tables.
Count
; i++)
531
if (topTables.
Count
== 0)
536
var temp = new DataTable[topTables.
Count
];
765
if (ds != null && _tables.
Count
> 0)
773
else if (writeHierarchy && _tables.
Count
> 0)
776
rels = new DataRelation[_relations.
Count
];
2071
if (_tables.
Count
> 0)
2321
for (int i = 0; i < tables.
Count
; i++)
2326
for (int i = 0; i < tables.
Count
; i++)
2338
for (int i = 0; i < _tables.
Count
; i++)
2382
for (int i = 0; i < _tables.
Count
; i++)
2400
for (int i = 0; i < _tables.
Count
; i++)
2729
for (int i = 0; i < _dTables.
Count
; i++)
2753
if (topTables.
Count
== 0)
2758
var temp = new DataTable[topTables.
Count
];
2820
for (int i = 0; i < _dTables.
Count
; i++)
2878
for (int i = 0; i < _dTables.
Count
; i++)
2900
for (int i = 0; i < _dTables.
Count
; i++)
System\Data\XMLSchema.cs (2)
804
for (int i = 0; i < _columnExpressions.
Count
; i++)
1208
DataColumn[] key = new DataColumn[keyColumns.
Count
];
System\Data\XmlToDatasetMap.cs (2)
371
_tableSchemaMap = new XmlNodeIdHashtable(tableList.
Count
);
422
while (nCounter < tableList.
Count
)
System\Xml\XmlDataDocument.cs (4)
70
for (int i = 0; i < al.
Count
; i++)
1627
if (_columnChangeList.
Count
> 0)
2692
while (rowElemList.
Count
> 0)
2721
while (rowElemList.
Count
> 0)
System.Data.Odbc (1)
System\Data\Odbc\OdbcErrorCollection.cs (1)
32
return _items.
Count
;
System.Net.Primitives (5)
System\Net\CookieCollection.cs (5)
40
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, m_list.
Count
);
64
m_version = m_list.
Count
;
125
return m_list.
Count
;
197
int listCount = m_list.
Count
;
214
if (idx == m_list.
Count
)
System.Net.WebProxy (3)
System\Net\WebProxy.cs (3)
80
var bypassList = new string[_bypassList.
Count
];
135
if (bypassList.
Count
> 0)
137
regexBypassList = new Regex[bypassList.
Count
];
System.Private.CoreLib (25)
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (11)
202
return BinarySearch(0,
Count
, value, null);
207
return BinarySearch(0,
Count
, value, comparer);
468
if (
Count
!= 0)
564
Reverse(0,
Count
);
616
Sort(0,
Count
, Comparer.Default);
623
Sort(0,
Count
, comparer);
1174
get { lock (_root) { return _list.
Count
; } }
1669
public override int Count => _list.
Count
;
1927
public override int Count => _list.
Count
;
2593
if (_index < _list.
Count
- 1)
2600
_index = _list.
Count
;
src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (14)
78
if (_attributes == null || _attributes.
Count
== 0)
84
Hashtable hashtable = new Hashtable(_attributes.
Count
/ 2);
86
int iMax = _attributes.
Count
;
175
int iMax = _attributes.
Count
;
236
int iMax = _attributes.
Count
;
240
if (iMax != other._attributes.
Count
)
263
if (_children.
Count
!= other._children.
Count
)
416
if (_attributes != null && _attributes.
Count
> 0)
420
int iMax = _attributes.
Count
;
433
if (i != _attributes.
Count
- 2)
440
if (_text == null && (_children == null || _children.
Count
== 0))
459
for (int i = 0; i < _children.
Count
; ++i)
484
int iMax = _attributes.
Count
;
System.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
485
list.
Count
,
System.Private.Xml (157)
System\Xml\Core\XsdValidatingReader.cs (3)
1328
else if (_defaultAttributes.
Count
> 0)
2194
_attributeCount += _defaultAttributes.
Count
;
2285
for (int i = 0; i < _defaultAttributes.
Count
; i++)
System\Xml\Dom\DocumentSchemaValidator.cs (1)
418
for (int i = 0; i < _defaultAttributes.
Count
; i++)
System\Xml\Dom\XmlDocument.cs (1)
337
if (elementList.
Count
== 0)
System\Xml\Schema\Asttree.cs (10)
153
get { return _stack.
Count
; }
219
for (int i = 0; i < _stack.
Count
; ++i)
241
for (int i = 0; i < _stack.
Count
; ++i)
273
for (int i = 0; i < _stack.
Count
; ++i)
315
_axisStack = new ArrayList(axisTree.SubtreeArray.
Count
); // defined length
317
for (int i = 0; i < axisTree.SubtreeArray.
Count
; ++i)
335
for (int i = 0; i < _axisStack.
Count
; ++i)
373
for (int i = 0; i < _axisStack.
Count
; ++i)
390
for (int i = 0; i < _axisStack.
Count
; ++i)
578
for (int i = 0; i < AstArray.
Count
; ++i)
System\Xml\Schema\BaseValidator.cs (1)
191
Debug.Assert(names.
Count
> 0);
System\Xml\Schema\ConstraintStruct.cs (1)
115
if (_KSpointer < _KSs.
Count
)
System\Xml\Schema\ContentValidator.cs (4)
86
Debug.Assert(_particles.
Count
== _last + 1);
123
Debug.Assert(_particles.
Count
== _last + 1);
253
get { return _positions.
Count
; }
1027
for (int i = 0; i < grp.Members.
Count
; ++i)
System\Xml\Schema\DataTypeImplementation.cs (3)
1132
if (values.
Count
< _minListSize)
1137
Array array = Array.CreateInstanceFromArrayType(arrayType, values.
Count
);
3082
for (int i = 0; i < dt.Restriction.Enumeration!.
Count
; ++i)
System\Xml\Schema\FacetChecker.cs (11)
872
for (int i = 0; i < restriction.Patterns!.
Count
; ++i)
1084
for (int i = 0; i < enumeration.
Count
; ++i)
1185
for (int i = 0; i < enumeration.
Count
; ++i)
1256
for (int i = 0; i < enumeration.
Count
; ++i)
1330
for (int i = 0; i < enumeration.
Count
; ++i)
1412
for (int i = 0; i < enumeration.
Count
; ++i)
1422
for (int i = 0; i < enumeration.
Count
; ++i)
1543
for (int i = 0; i < enumeration.
Count
; ++i)
1612
for (int i = 0; i < enumeration.
Count
; ++i)
1680
for (int i = 0; i < enumeration.
Count
; ++i)
1719
for (int i = 0; i < enumeration.
Count
; ++i)
System\Xml\Schema\Inference\Infer.cs (2)
350
if (col != null && col.
Count
> 0)
525
if (col != null && col.
Count
> 0)
System\Xml\Schema\Preprocessor.cs (1)
142
for (int i = 0; i < _redefinedList.
Count
; ++i)
System\Xml\Schema\SchemaCollectionCompiler.cs (4)
435
if (substitutionGroup.IsProcessing && substitutionGroup.Members.
Count
> 0)
455
for (int i = 0; i < substitutionGroup.Members.
Count
; ++i)
476
else if (substitutionGroup.Members.
Count
> 0)
488
for (int i = 0; i < substitutionGroup.Members.
Count
; ++i)
System\Xml\Schema\SchemaSetCompiler.cs (5)
492
if (substitutionGroup.IsProcessing && substitutionGroup.Members.
Count
> 0)
515
for (int i = 0; i < substitutionGroup.Members.
Count
; ++i)
525
for (int j = 0; j < g.Members.
Count
; ++j)
539
for (int i = 0; i < newMembers.
Count
; ++i)
1243
for (int i = 0; i < substitutionGroup.Members.
Count
; ++i)
System\Xml\Schema\XmlSchemaSet.cs (12)
414
for (int i = 0; i < schemaToRemove.ImportedNamespaces.
Count
; i++)
437
for (int i = 0; i < needToCheckSchemaList.
Count
; i++)
441
if (mainSchema.ImportedNamespaces.
Count
> 0)
455
for (int i = 0; i < schemaToRemove.ImportedSchemas.
Count
; ++i)
638
for (int i = 0; i < schema.ImportedSchemas.
Count
; ++i)
826
if (schema!.ImportedSchemas.
Count
> 0)
829
for (int i = 0; i < schema.ImportedSchemas.
Count
; ++i)
931
for (int i = 0; i < schema.ImportedSchemas.
Count
; ++i)
966
for (int i = 0; i < substGroup.Members.
Count
; ++i)
989
for (int i = 0; i < substitutionGroup.Members.
Count
; ++i)
998
for (int j = 0; j < g.Members.
Count
; ++j)
1338
for (int j = 0; j < removalList.
Count
; ++j)
System\Xml\Schema\XmlSchemaValidator.cs (15)
349
for (int i = 0; i < schema.ImportedSchemas.
Count
; ++i)
776
if (names == null || names.
Count
== 0)
782
Debug.Assert(names.
Count
> 0);
2248
for (int k = 0; k < constraintStructures[j].axisFields.
Count
; ++k)
2292
for (int j = 0; j < constraintStructures[i].axisFields.
Count
; ++j)
2339
for (int j = 0; j < constraints[i].axisFields.
Count
; ++j)
2530
if (names == null || names.
Count
== 0)
2543
Debug.Assert(names.
Count
> 0);
2584
if (names == null || names.
Count
== 0)
2595
Debug.Assert(names.
Count
> 0);
2618
if (expected.
Count
== 1)
2624
for (int i = 1; i < expected.
Count
; i++)
2662
for (int i = 1; i < expected.
Count
; ++i)
2675
if (expected.
Count
== 1)
2698
for (int i = 0; i < expected.
Count
; i++)
System\Xml\Schema\XsdValidator.cs (3)
933
for (int k = 0; k < constraints[j].axisFields.
Count
; ++k)
978
for (int j = 0; j < constraints[i].axisFields.
Count
; ++j)
1033
for (int j = 0; j < constraints[i].axisFields.
Count
; ++j)
System\Xml\Serialization\CodeIdentifiers.cs (1)
176
Array array = Array.CreateInstance(type, _list.
Count
);
System\Xml\Serialization\Compilation.cs (1)
291
for (int i = 0; i < list.
Count
; i++)
System\Xml\Serialization\ImportContext.cs (5)
82
for (int i = 0; i < list.
Count
; i++)
130
for (int i = 0; i < list.
Count
; i++)
143
for (int i = 0; i < list.
Count
; i++)
148
tmp += (int)cachedHash / list.
Count
;
161
for (int i = 0; i < items.
Count
; i++)
System\Xml\Serialization\Mappings.cs (2)
1346
if (srcSchemas.
Count
== 0)
1350
if (srcSchemas.
Count
> 1)
System\Xml\Serialization\SchemaObjectWriter.cs (4)
220
for (int i = 0; i < attrs.
Count
; i++)
291
for (int i = 0; i < list.
Count
; i++)
605
for (int i = 0; i < list.
Count
; i++)
659
for (int ia = 0; ia < a.
Count
; ia++)
System\Xml\Serialization\XmlReflectionImporter.cs (3)
592
if (srcSchemas.
Count
== 0)
596
if (srcSchemas.
Count
> 1)
2356
return _list.
Count
;
System\Xml\Serialization\XmlSerializationReader.cs (4)
1518
for (int i = 0; i < _fixups.
Count
; i++)
1525
for (int i = 0; i < _collectionFixups.
Count
; i++)
3770
if (attributes.
Count
> 0)
3775
for (int i = 0; i < attributes.
Count
; i++)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
1423
for (int i = 0; i < _referencesToWrite.
Count
; i++)
System\Xml\XPath\Internal\XPathMultyIterator.cs (1)
22
this.arr = new ResettableIterator[inputArray.
Count
];
System\Xml\Xsl\IlGen\XmlILConstructAnalyzer.cs (2)
870
for (idx = 0; idx < _dupAttrs.
Count
; idx++)
881
if (idx >= _dupAttrs.
Count
)
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (1)
5635
isUsed = XmlILConstructInfo.Read(nd).CallersInfo.
Count
!= 0;
System\Xml\Xsl\QIL\SubstitutionList.cs (3)
41
_s.RemoveRange(_s.
Count
- 2, 2);
51
Debug.Assert(_s.
Count
% 2 == 0);
52
for (int i = _s.
Count
- 2; i >= 0; i -= 2)
System\Xml\Xsl\Runtime\WhitespaceRuleLookup.cs (1)
99
for (int pos = _wildcards.
Count
; pos-- != 0;)
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (1)
903
for (int i = 0; i < docIndexes.
Count
; i += 2)
System\Xml\Xsl\XsltOld\ActionFrame.cs (2)
143
Debug.Assert(0 < sortarray.
Count
);
144
int numSorts = sortarray.
Count
;
System\Xml\Xsl\XsltOld\ApplyTemplatesAction.cs (2)
140
if (this.containedActions != null && this.containedActions.
Count
> 0)
161
if (processor.SortArray.
Count
!= 0)
System\Xml\Xsl\XsltOld\Avt.cs (2)
28
_events = new TextEvent[eventList.
Count
];
29
for (int i = 0; i < eventList.
Count
; i++)
System\Xml\Xsl\XsltOld\CallTemplateAction.cs (1)
89
if (this.containedActions != null && this.containedActions.
Count
> 0)
System\Xml\Xsl\XsltOld\Compiler.cs (1)
944
Debug.Assert(!constant || list.
Count
<= 1, "We can't have more then 1 text event if now {avt} found");
System\Xml\Xsl\XsltOld\ContainerAction.cs (4)
227
for (int i = imports.
Count
- 1; 0 <= i; i--)
958
if (this.containedActions != null && this.containedActions.
Count
> 0)
983
if (this.containedActions != null && actionIndex < this.containedActions.
Count
)
1014
for (int i = 0; i < this.containedActions.
Count
; i++)
System\Xml\Xsl\XsltOld\CopyCodeAction.cs (4)
37
int count = _copyEvents.
Count
;
47
Debug.Assert(_copyEvents != null && _copyEvents.
Count
> 0);
61
Debug.Assert(frame.Counter < _copyEvents.
Count
);
70
if (frame.IncrementCounter() >= _copyEvents.
Count
)
System\Xml\Xsl\XsltOld\ForEachAction.cs (1)
71
Debug.Assert(processor.SortArray.
Count
!= 0);
System\Xml\Xsl\XsltOld\newinstructionaction.cs (1)
60
if (this.containedActions != null && this.containedActions.
Count
> 0)
System\Xml\Xsl\XsltOld\NumberAction.cs (2)
528
int numberlistCount = numberlist.
Count
;
559
for (int i = 0; i < numberlist.
Count
; i++)
System\Xml\Xsl\XsltOld\ReaderOutput.cs (1)
605
Debug.Assert(0 <= attrib && attrib < _attributeList!.
Count
);
System\Xml\Xsl\XsltOld\RecordBuilder.cs (5)
257
Debug.Assert(_attributeCount <= _attributeList.
Count
);
310
if (_attributeCount >= _attributeList.
Count
)
312
Debug.Assert(_attributeCount == _attributeList.
Count
);
738
if (_namespaceCount >= _namespaceList.
Count
)
740
Debug.Assert(_namespaceCount == _namespaceList.
Count
);
System\Xml\Xsl\XsltOld\RootAction.cs (3)
46
for (int i = 0; i < _keyNodes.
Count
; i++)
154
for (int src = srcAttList.
Count
- 1; 0 <= src; src--)
262
if (this.containedActions != null && this.containedActions.
Count
> 0)
System\Xml\Xsl\XsltOld\SequentialOutput.cs (2)
405
for (int record = 0; record < _outputCache.
Count
; record++)
687
Debug.Assert(count <= list.
Count
);
System\Xml\Xsl\XsltOld\Stylesheet.cs (11)
92
for (int i = 0; i < _whitespaceList!.
Count
; i++)
94
for (int j = _whitespaceList.
Count
- 1; j > i; j--)
110
for (int importIndex = _imports.
Count
- 1; importIndex >= 0; importIndex--)
127
for (int i = _whitespaceList.
Count
- 1; 0 <= i; i--)
138
for (int importIndex = _imports.
Count
- 1; importIndex >= 0; importIndex--)
228
for (int importIndex = _imports.
Count
- 1; importIndex >= 0; importIndex--)
254
for (int i = 0; i < manager.templates.
Count
; i++)
273
for (int importIndex = _imports.
Count
- 1; importIndex >= 0; importIndex--)
318
for (int importIndex = _imports.
Count
- 1; importIndex >= 0; importIndex--)
386
for (int importIndex = _imports.
Count
- 1; importIndex >= 0; importIndex--)
418
for (int importIndex = _imports.
Count
- 1; importIndex >= 0; importIndex--)
System\Xml\Xsl\XsltOld\TemplateAction.cs (1)
234
if (this.containedActions != null && this.containedActions.
Count
> 0)
System\Xml\Xsl\XsltOld\TemplateManager.cs (1)
83
for (int templateIndex = this.templates.
Count
- 1; templateIndex >= 0; templateIndex--)
System\Xml\Xsl\XsltOld\WriterOutput.cs (1)
91
Debug.Assert(list.
Count
>= count);
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (5)
330
value.ComparePosition((XPathNavigator?)list[list.
Count
- 1]) != XmlNodeOrder.Before,
337
if (value.ComparePosition((XPathNavigator?)list[list.
Count
- 1]) == XmlNodeOrder.Same)
345
value.ComparePosition((XPathNavigator?)list[list.
Count
- 1]) != XmlNodeOrder.Same,
920
Debug.Assert(resultCollection.
Count
!= 0);
921
Debug.Assert(newList.
Count
!= 0);
System.Security.Cryptography.Xml (21)
System\Security\Cryptography\Xml\AncestralNamespaceContextManager.cs (4)
20
return GetScopeAt(_ancestorStack.
Count
- 1);
27
for (int i = _ancestorStack.
Count
- 1; i >= 0; i--)
42
for (int i = _ancestorStack.
Count
- 1; i >= 0; i--)
60
_ancestorStack.RemoveAt(_ancestorStack.
Count
- 1);
System\Security\Cryptography\Xml\C14NAncestralNamespaceContextManager.cs (1)
76
for (int i = _ancestorStack.
Count
- 1; i >= 0; i--)
System\Security\Cryptography\Xml\CanonicalXmlNodeList.cs (1)
30
get { return _nodeArray.
Count
; }
System\Security\Cryptography\Xml\EncryptionPropertyCollection.cs (1)
24
get { return _props.
Count
; }
System\Security\Cryptography\Xml\KeyInfo.cs (2)
51
for (int i = 0; i < _keyInfoClauses.
Count
; ++i)
114
get { return _keyInfoClauses.
Count
; }
System\Security\Cryptography\Xml\ReferenceList.cs (1)
24
get { return _references.
Count
; }
System\Security\Cryptography\Xml\SignedInfo.cs (2)
193
if (_references.
Count
== 0)
196
for (int i = 0; i < _references.
Count
; ++i)
System\Security\Cryptography\Xml\SignedXml.cs (4)
830
for (int j = 0; j < references.
Count
; ++j)
885
_refProcessed = new bool[references.
Count
];
886
_refLevelCache = new int[references.
Count
];
921
for (int i = 0; i < references.
Count
; ++i)
System\Security\Cryptography\Xml\TransformChain.cs (2)
47
get { return _transforms.
Count
; }
54
if (index >= _transforms.
Count
)
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (3)
119
if (ExceptUris.
Count
== 0)
195
if (ExceptUris.
Count
> 0)
197
for (int index = 0; index < ExceptUris.
Count
; index++)
System.Security.Permissions (2)
System\Security\Permissions\PrincipalPermission.cs (2)
282
if (elem.Children != null && elem.Children.
Count
!= 0)
284
int numChildren = elem.Children.
Count
;
System.Windows.Forms (18)
System\Windows\Forms\BaseCollection.cs (1)
19
public virtual int Count => List!.
Count
;
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (13)
101
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value, Items.
Count
);
135
for (int i = 0; i < Items.
Count
; i++)
205
if (_domainItems.
Count
<= 0)
227
if (_domainIndex < _domainItems.
Count
- 1)
264
if (_domainItems.
Count
<= 0)
271
startPosition = _domainItems.
Count
- 1;
274
if (startPosition >= _domainItems.
Count
)
306
if (index >= _domainItems.
Count
)
378
Debug.Assert(index < _domainItems.
Count
&& index >= -1, "SelectValue: index out of range");
379
if (_domainItems is null || index < -1 || index >= _domainItems.
Count
)
447
s = $"{s}, Items.Count: {Items.
Count
}, SelectedIndex: {SelectedIndex}";
464
if (_domainItems.
Count
<= 0)
491
SelectIndex(_domainItems.
Count
- 1);
System\Windows\Forms\DataBinding\BindingManagerBase.cs (3)
86
PropertyDescriptor[] properties = new PropertyDescriptor[listAccessors.
Count
];
100
if (listAccessors.
Count
< offset)
105
if (listAccessors.
Count
== offset)
System\Windows\Forms\DataBinding\CurrencyManager.cs (1)
599
PropertyDescriptor[] properties = new PropertyDescriptor[listAccessors.
Count
];
System.Windows.Forms.Design (7)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
988
array = Array.CreateInstance(arrayType, arrayList.
Count
);
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (2)
448
if ((originalSelComps.
Count
> 1) ||
449
(originalSelComps.
Count
== 1 && selItem.GetCurrentParent() != nextSelection.GetCurrentParent()) ||
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
305
if (origSel.
Count
== 0)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (1)
2040
if (origSel.
Count
== 0)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
2184
if (origSel.
Count
== 0)
2192
if (origSel.
Count
> 0)
System.Windows.Forms.Tests (9)
System\Windows\Forms\DomainUpDownTests.cs (9)
114
_sub.Items.
Count
.Should().Be(0);
625
_sub.Items.
Count
.Should().Be(0);
633
_sub.Items.
Count
.Should().Be(0);
641
_sub.Items.
Count
.Should().Be(0);
748
_sub.Items.
Count
.Should().Be(0);
759
_sub.Items.
Count
.Should().Be(0);
770
_sub.Items.
Count
.Should().Be(0);
995
_sub.Items.
Count
.Should().Be(0);
1219
_sub.Items.
Count
.Should().Be(0);
UIAutomationClient (12)
MS\Internal\Automation\ClientEventManager.cs (5)
160
for (int i = _listeners.
Count
- 1; i >= 0; i--)
235
if (_listeners.
Count
== 0)
297
for (int i = _listeners.
Count
- 1; i >= 0; i--)
556
for (int i = 0; i < _listeners.
Count
; i++)
619
for (int i = 0; i < _listeners.
Count
; i++)
MS\Internal\Automation\ProxyManager.cs (3)
151
count += ((ArrayList)o).
Count
;
519
if (proxy == null && _partialClassHandlers.
Count
> 0)
597
count = array.
Count
;
MS\Internal\Automation\WinEventWrap.cs (4)
88
if (_clientCallbacks.
Count
== 0)
93
listIsEmpty = (_clientCallbacks.
Count
== 0);
150
object[] handlers = new object[_clientCallbacks.
Count
];
151
for (int i = 0; i < _clientCallbacks.
Count
; i++)
UIAutomationClientSideProviders (11)
MS\Internal\AutomationProxies\MSAANativeProvider.cs (1)
105
for (int i = actualParentChain.
Count
- 1; i >= 0; i--)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (1)
278
Rect[] rectArray = new Rect[rects.
Count
];
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (7)
136
if (index >= _groups.
Count
)
145
int count = _groups.
Count
;
157
int count = _groups.
Count
;
174
if (index >= _groups.
Count
)
184
return _groups.
Count
;
189
int count = _groups.
Count
;
350
int count = _groups.
Count
;
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (1)
202
Rect[] rectArray = new Rect[rects.
Count
];
MS\Internal\AutomationProxies\WindowsTab.cs (1)
407
int count = list.
Count
;