643 implementations of Count
Analyzer.Utilities.UnitTests (1)
Extensions\IEnumerableExensionsTests.cs (1)
93public int Count { get; }
dotnet-svcutil-lib (9)
FrameworkFork\Microsoft.CodeDom\Compiler\TempFiles.cs (1)
163int ICollection.Count
FrameworkFork\Microsoft.CodeDom\System\CodeNamespaceImportCollection.cs (1)
159int ICollection.Count
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlAttributeCollection.cs (1)
281int ICollection.Count
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaCollection.cs (1)
315int ICollection.Count
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (2)
194public int Count 249public int Count
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (1)
56public int Count
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
70public int Count
Shared\Options\ListValue.cs (1)
69int ICollection.Count { get { return this.Count; } }
GenerateDocumentationAndConfigFiles (16)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
Metrics (16)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
Metrics.Legacy (16)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
Microsoft.Build (6)
Collections\ArrayDictionary.cs (1)
84public int Count => count;
Construction\ProjectElementContainer.cs (1)
801public int Count => RealizedElements.Count;
CopyOnWriteDictionary.cs (1)
154int ICollection.Count => Count;
ReadOnlyCollection.cs (1)
46public int Count
ReadOnlyEmptyCollection.cs (1)
53public int Count
ReadOnlyEmptyDictionary.cs (1)
57public int Count
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (1)
106public int Count => _keys.Count;
Microsoft.Build.Framework (14)
ImmutableSegmentedDictionary`2.cs (1)
84public int Count => _dictionary.Count;
ImmutableSegmentedDictionary`2+Builder.cs (1)
54public int Count => ReadOnlyDictionary.Count;
ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
26public int Count => _dictionary.Count;
ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
26public int Count => _dictionary.Count;
ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
22public int Count => _dictionary.Count;
ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
22public int Count => _dictionary.Count;
ImmutableSegmentedList`1.cs (1)
81public int Count => _list.Count;
ImmutableSegmentedList`1+Builder.cs (1)
24public int Count => _builder.Count;
ImmutableSegmentedList`1+ValueBuilder.cs (1)
33public int Count => ReadOnlyList.Count;
SegmentedArray`1.cs (1)
125int ICollection.Count => Length;
SegmentedDictionary`2.cs (3)
165public int Count => _count - _freeCount; 1301public int Count => _dictionary.Count; 1501public int Count => _dictionary.Count;
SegmentedList`1.cs (1)
152public int Count => _size;
Microsoft.Build.Tasks.Core (4)
CopyOnWriteDictionary.cs (1)
154int ICollection.Count => Count;
ReadOnlyCollection.cs (1)
46public int Count
ReadOnlyEmptyCollection.cs (1)
53public int Count
ReadOnlyEmptyDictionary.cs (1)
57public int Count
Microsoft.Build.Utilities.Core (3)
CopyOnWriteDictionary.cs (1)
154int ICollection.Count => Count;
ReadOnlyEmptyCollection.cs (1)
53public int Count
ReadOnlyEmptyDictionary.cs (1)
57public int Count
Microsoft.CodeAnalysis (16)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
Microsoft.CodeAnalysis.Analyzers (16)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
Microsoft.CodeAnalysis.AnalyzerUtilities (16)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
Microsoft.CodeAnalysis.BannedApiAnalyzers (16)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
Microsoft.CodeAnalysis.CodeStyle (16)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
Microsoft.CodeAnalysis.Collections.Package (16)
Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
Microsoft.CodeAnalysis.Extensions.Package (16)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
Microsoft.CodeAnalysis.InteractiveHost (16)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (16)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
Microsoft.CodeAnalysis.PublicApiAnalyzers (16)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
Microsoft.CodeAnalysis.ResxSourceGenerator (16)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
ObjectFormatterFixtures\Custom.cs (1)
424public int Count
Microsoft.CodeAnalysis.Threading.Package (16)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
Microsoft.CodeAnalysis.Workspaces (16)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (16)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
Microsoft.Maui.Controls (4)
ListProxy.cs (1)
112 public int Count
ObservableWrapper.cs (1)
71 public int Count
ReadOnlyListAdapter.cs (1)
31 public int Count
TemplatedItemsList.cs (1)
338 public int Count
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Collection.vb (1)
609Private ReadOnly Property ICollectionCount() As Integer Implements ICollection.Count
MSBuild (3)
CopyOnWriteDictionary.cs (1)
154int ICollection.Count => Count;
ReadOnlyEmptyCollection.cs (1)
53public int Count
ReadOnlyEmptyDictionary.cs (1)
57public int Count
MSBuildTaskHost (4)
CopyOnWriteDictionary.cs (1)
154int ICollection.Count => Count;
Immutable\ImmutableDictionary.cs (1)
47public int Count => _backing.Count;
ReadOnlyEmptyCollection.cs (1)
53public int Count
ReadOnlyEmptyDictionary.cs (1)
57public int Count
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (1)
531public int Count
PresentationCore (54)
System\Windows\FreezableCollection.cs (1)
344public int Count
System\Windows\Generated\TextDecorationCollection.cs (1)
256public int Count
System\Windows\Input\Command\CommandBindingCollection.cs (1)
274public int Count
System\Windows\Input\Command\InputBindingCollection.cs (1)
333public int Count
System\Windows\Input\Command\InputGestureCollection.cs (1)
342public int Count
System\Windows\Input\Stylus\Common\TabletDeviceCollection.cs (1)
28public int Count
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
255public int Count
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (1)
207public int Count
System\Windows\Media\CharacterMetricsDictionary.cs (1)
59public int Count
System\Windows\Media\CultureSpecificStringDictionary.cs (2)
63public int Count 437public int Count
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
258public int Count
System\Windows\Media\FamilyMapCollection.cs (1)
135public int Count
System\Windows\Media\FamilyTypefaceCollection.cs (1)
122public int Count
System\Windows\Media\Generated\DoubleCollection.cs (1)
217public int Count
System\Windows\Media\Generated\DrawingCollection.cs (1)
277public int Count
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
265public int Count
System\Windows\Media\Generated\GeometryCollection.cs (1)
277public int Count
System\Windows\Media\Generated\GradientStopCollection.cs (1)
265public int Count
System\Windows\Media\Generated\Int32Collection.cs (1)
217public int Count
System\Windows\Media\Generated\PathFigureCollection.cs (1)
266public int Count
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
265public int Count
System\Windows\Media\Generated\PointCollection.cs (1)
217public int Count
System\Windows\Media\Generated\TextEffectCollection.cs (1)
265public int Count
System\Windows\Media\Generated\TransformCollection.cs (1)
277public int Count
System\Windows\Media\Generated\VectorCollection.cs (1)
217public int Count
System\Windows\Media\VisualCollection.cs (1)
105public int Count
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
263public int Count
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
275public int Count
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
275public int Count
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
215public int Count
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
275public int Count
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
215public int Count
System\Windows\Media3D\Visual3DCollection.cs (1)
259public int Count
PresentationFramework (22)
MS\Internal\Controls\InnerItemCollectionView.cs (1)
370public override int Count
MS\Internal\Data\LiveShapingList.cs (1)
620public int Count
MS\Internal\Documents\ContentElementCollection.cs (1)
536public int Count
System\Windows\Controls\ColumnDefinition.cs (1)
371public int Count // int ICollection.Count {get;}; int ICollection<T>.Count {get;}
System\Windows\Controls\CustomDictionarySources.cs (1)
276int ICollection.Count
System\Windows\Controls\ItemCollection.cs (1)
470public override int Count
System\Windows\Controls\MultipleCopiesCollection.cs (1)
303public int Count
System\Windows\Controls\RowDefinition.cs (1)
366public int Count // int ICollection.Count {get;}; int ICollection<T>.Count {get;}
System\Windows\Controls\UIElementCollection.cs (1)
48public virtual int Count
System\Windows\Data\CompositeCollection.cs (1)
278public int Count
System\Windows\Documents\TableCellCollection.cs (1)
350public int Count
System\Windows\Documents\TableColumnCollection.cs (1)
357public int Count
System\Windows\Documents\TableRowCollection.cs (1)
350public int Count
System\Windows\Documents\TableRowGroupCollection.cs (1)
350public int Count
System\Windows\Documents\TextElementCollection.cs (1)
623int ICollection.Count
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
364int ICollection.Count
System\Windows\Markup\XmlnsDictionary.cs (1)
531public int Count
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (1)
207public int Count
System\Windows\ResourceDictionary.cs (2)
901public int Count 2264int ICollection.Count
System\Windows\TriggerActionCollection.cs (1)
48public int Count
System\Windows\WindowCollection.cs (1)
107public int Count
Roslyn.Diagnostics.Analyzers (16)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
System.CodeDom (2)
src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
106int ICollection.Count => _files.Count;
System\CodeDom\CodeNamespaceImportCollection.cs (1)
76int ICollection.Count => Count;
System.Collections (13)
System\Collections\Generic\LinkedList.cs (1)
49public int Count
System\Collections\Generic\OrderedDictionary.cs (3)
242public int Count => _count; 1481public int Count => _dictionary.Count; 1676public int Count => _dictionary.Count;
System\Collections\Generic\PriorityQueue.cs (1)
950public int Count => _queue._size;
System\Collections\Generic\SortedDictionary.cs (3)
137public int Count 589public int Count 750public int Count
System\Collections\Generic\SortedList.cs (3)
282public int Count 1011public int Count 1125public int Count
System\Collections\Generic\SortedSet.cs (1)
266public int Count
System\Collections\Generic\Stack.cs (1)
57public int Count => _size;
System.Collections.Concurrent (4)
System\Collections\Concurrent\BlockingCollection.cs (1)
103public int Count
System\Collections\Concurrent\ConcurrentBag.cs (1)
486public int Count
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1136public int Count
System\Collections\Concurrent\ConcurrentStack.cs (1)
134public int Count
System.Collections.Immutable (13)
System\Collections\Frozen\FrozenDictionary.cs (1)
366public int Count => CountCore;
System\Collections\Frozen\FrozenSet.cs (1)
264public int Count => CountCore;
System\Collections\Immutable\ImmutableArray_1.cs (1)
1293int ICollection.Count
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (1)
140public int Count
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
133public int Count
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
92public int Count
System\Collections\Immutable\ImmutableList_1.Builder.cs (1)
70public int Count
System\Collections\Immutable\ImmutableList_1.cs (1)
142public int Count => _root.Count;
System\Collections\Immutable\ImmutableSortedDictionary_2.Builder.cs (1)
118public int Count
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
108public int Count
System\Collections\Immutable\ImmutableSortedSet_1.Builder.cs (1)
76public int Count
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
115public int Count
System\Collections\Immutable\KeysOrValuesCollectionAccessor.cs (1)
53public int Count
System.Collections.NonGeneric (8)
System\Collections\CollectionBase.cs (1)
56public int Count
System\Collections\DictionaryBase.cs (1)
28public int Count
System\Collections\Queue.cs (1)
76public virtual int Count
System\Collections\ReadOnlyCollectionBase.cs (1)
23public virtual int Count
System\Collections\SortedList.cs (3)
229public virtual int Count 897public int Count 1001public int Count
System\Collections\Stack.cs (1)
62public virtual int Count
System.Collections.Specialized (8)
System\Collections\Specialized\HybridDictionary.cs (1)
144public int Count
System\Collections\Specialized\ListDictionary.cs (2)
101public int Count 375int ICollection.Count
System\Collections\Specialized\NameObjectCollectionBase.cs (2)
363public virtual int Count 587public int Count
System\Collections\Specialized\OrderedDictionary.cs (2)
81public int Count 569int ICollection.Count => _objects.Count;
System\Collections\Specialized\StringCollection.cs (1)
35public int Count
System.ComponentModel.TypeConverter (7)
System\ComponentModel\AttributeCollection.cs (1)
335int ICollection.Count => Count;
System\ComponentModel\Design\DesignerCollection.cs (1)
57int ICollection.Count => Count;
System\ComponentModel\Design\DesignerOptionService.cs (1)
143public int Count
System\ComponentModel\EventDescriptorCollection.cs (1)
372int ICollection.Count => Count;
System\ComponentModel\ListSortDescriptionCollection.cs (1)
62public int Count => _sorts.Count;
System\ComponentModel\PropertyDescriptorCollection.cs (1)
406int ICollection.Count => Count;
System\ComponentModel\TypeConverter.cs (1)
444public int Count
System.Configuration.ConfigurationManager (7)
src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
106int ICollection.Count => _files.Count;
System\Configuration\ConfigurationElementCollection.cs (1)
119public int Count => Items.Count - _removedItemCount;
System\Configuration\ConfigurationLockCollection.cs (1)
104public int Count => _internalDictionary.Count;
System\Configuration\ConfigurationPropertyCollection.cs (1)
28public int Count => _items.Count;
System\Configuration\Provider\ProviderCollection.cs (1)
25public int Count => _hashtable.Count;
System\Configuration\SettingsPropertyCollection.cs (1)
109public int Count { get { return _hashtable.Count; } }
System\Configuration\SettingsPropertyValueCollection.cs (1)
109public int Count { get { return _values.Count; } }
System.Data.Common (8)
System\Data\BaseCollection.cs (1)
21public virtual int Count => List.Count;
System\Data\Common\DataColumnMappingCollection.cs (1)
76public int Count
System\Data\Common\DataTableMappingCollection.cs (1)
55public int Count => (null != _items) ? _items.Count : 0;
System\Data\Common\DbConnectionStringBuilder.cs (1)
197public virtual int Count
System\Data\Common\DbParameterCollection.cs (1)
16public abstract int Count { get; }
System\Data\DataView.cs (1)
271public int Count
System\Data\DataViewManager.cs (1)
148int ICollection.Count => 1;
System\Data\DataViewSettingCollection.cs (1)
130public virtual int Count
System.Data.Odbc (1)
System\Data\Odbc\OdbcErrorCollection.cs (1)
28public int Count
System.Data.OleDb (1)
artifacts\obj\System.Data.OleDb\Debug\net10.0\System.Data.OleDb.notsupported.cs (1)
249public int Count { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } }
System.Diagnostics.EventLog (1)
artifacts\obj\System.Diagnostics.EventLog\Debug\net10.0\System.Diagnostics.EventLog.notsupported.cs (1)
126public int Count { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } }
System.Diagnostics.Process (1)
System\Collections\Specialized\DictionaryWrapper.cs (1)
35public int Count => _contents.Count;
System.Diagnostics.TraceSource (1)
System\Diagnostics\TraceListeners.cs (1)
62public int Count
System.DirectoryServices (3)
artifacts\obj\System.DirectoryServices\Debug\net10.0\System.DirectoryServices.notsupported.cs (3)
368public int Count { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 440public int Count { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 475public int Count { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } }
System.DirectoryServices.AccountManagement (2)
artifacts\obj\System.DirectoryServices.AccountManagement\Debug\net10.0\System.DirectoryServices.AccountManagement.notsupported.cs (2)
233int System.Collections.ICollection.Count { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } } 362int System.Collections.ICollection.Count { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } }
System.Drawing.Common (4)
Special\NotSupported.cs (4)
3052int System.Collections.ICollection.Count { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3068int System.Collections.ICollection.Count { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3084int System.Collections.ICollection.Count { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3100int System.Collections.ICollection.Count { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
System.Linq.Expressions (1)
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (1)
106public int Count => _size;
System.Management (4)
artifacts\obj\System.Management\Debug\net10.0\System.Management.notsupported.cs (4)
335public int Count { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemManagement); } } 558public int Count { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemManagement); } } 627public int Count { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemManagement); } } 678public int Count { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemManagement); } }
System.Net.Primitives (1)
System\Net\CookieCollection.cs (1)
121public int Count
System.ObjectModel (2)
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (2)
286public int Count => _list.Count; 341public int Count => 1;
System.Private.CoreLib (25)
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
624int ICollection.Count => Length;
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (4)
103public virtual int Count => _size; 1482public int Count 1597public int Count => _list.Count; 1856public int Count => _list.Count;
src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (1)
920public int Count => _bitLength;
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (1)
256public int Count
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (3)
209public int Count => _count - _freeCount; 1926public int Count => _dictionary.Count; 2121public int Count => _dictionary.Count;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
127public int Count => _size;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (1)
55public int Count => _size;
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (3)
1012public virtual int Count => _count; 1210public int Count => _hashtable._count; 1245public int Count => _hashtable._count;
src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (2)
83public int Count => count; 319int ICollection.Count
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
32public int Count => items.Count;
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (1)
33public int Count => list.Count;
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (3)
71public int Count => m_dictionary.Count; 278public int Count => _collection.Count; 331public int Count => _collection.Count;
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlySet.cs (1)
34public int Count => _set.Count;
src\libraries\System.Private.CoreLib\src\System\Security\PermissionSet.cs (1)
17public virtual int Count => 0;
src\System\Collections\EmptyReadOnlyDictionaryInternal.cs (1)
51public int Count => 0;
System.Private.Xml (6)
System\Xml\Dom\XmlAttributeCollection.cs (1)
287int ICollection.Count
System\Xml\Schema\XmlSchemaCollection.cs (1)
265int ICollection.Count
System\Xml\Schema\XmlSchemaObjectTable.cs (2)
168public int Count 221public int Count
System\Xml\Xsl\ListBase.cs (1)
25public abstract int Count { get; }
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (1)
134public int Count
System.Security.AccessControl (2)
artifacts\obj\System.Security.AccessControl\Debug\net10.0\System.Security.AccessControl.notsupported.cs (2)
286public abstract int Count { get; } 546public int Count { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } }
System.Security.Cryptography (5)
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
99public int Count
System\Security\Cryptography\AsnEncodedDataCollection.cs (1)
48public int Count
System\Security\Cryptography\OidCollection.cs (1)
66public int Count => _count;
System\Security\Cryptography\X509Certificates\X509ChainElementCollection.cs (1)
25public int Count
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (1)
22public int Count
System.Security.Cryptography.Pkcs (4)
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
99public int Count
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (1)
48public int Count
System\Security\Cryptography\Pkcs\RecipientInfoCollection.cs (1)
39public int Count
System\Security\Cryptography\Pkcs\SignerInfoCollection.cs (1)
50public int Count => _signerInfos.Length;
System.Security.Cryptography.Xml (4)
System\Security\Cryptography\Xml\CanonicalXmlNodeList.cs (1)
28public override int Count
System\Security\Cryptography\Xml\EncryptionPropertyCollection.cs (1)
22public int Count
System\Security\Cryptography\Xml\ReferenceList.cs (1)
22public int Count
System\Security\Cryptography\Xml\SignedInfo.cs (1)
44public int Count
System.Security.Permissions (2)
System\Security\Permissions\KeyContainerPermissionAccessEntryCollection.cs (1)
14public int Count { get; }
System\Security\Policy\ApplicationTrustCollection.cs (1)
11public int Count { get { return 0; } }
System.ServiceModel.Primitives (1)
netstandard.cs (1)
20public int Count { get { return default; } }
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\CaptureCollection.cs (1)
31public int Count => _capcount;
System\Text\RegularExpressions\GroupCollection.cs (1)
36public int Count => _match._matchcount.Length;
System\Text\RegularExpressions\MatchCollection.cs (1)
45public int Count
System.Windows.Forms (42)
System\Windows\Forms\AutoCompleteStringCollection.cs (1)
42public int Count => _data.Count;
System\Windows\Forms\BaseCollection.cs (1)
19public virtual int Count => List!.Count;
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (1)
61public int Count => InnerList.Count;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (1)
46int ICollection.Count => _items.Count;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (1)
53int ICollection.Count => _items.Count;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.ObjectCollection.cs (1)
32public int Count => InnerArray.Count;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (1)
70int ICollection.Count => Count;
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedCellCollection.cs (1)
59int ICollection.Count => _items.Count;
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedColumnCollection.cs (1)
55int ICollection.Count => _items.Count;
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedRowCollection.cs (1)
44int ICollection.Count => _items.Count;
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (1)
79public int Count
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (1)
84public int Count => _owner._links.Count;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedIndexCollection.cs (1)
23public int Count
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedItemCollection.cs (1)
27public int Count
System\Windows\Forms\Controls\ListBoxes\ListBox.IntegerCollection.cs (1)
26public int Count
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
53public int Count => InnerArray.Count;
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedIndexCollection.cs (1)
24public int Count
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (1)
32public int Count
System\Windows\Forms\Controls\ListView\ListView.CheckedIndexCollection.cs (1)
26public int Count
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (1)
31public int Count
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (1)
69public int Count
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (1)
45public int Count => InnerList.Count;
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (1)
26public int Count
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (1)
83public int Count
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
24public int Count => List.Count;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (1)
30public int Count => _owner.SubItemCount;
System\Windows\Forms\Controls\PropertyGrid\GridItemCollection.cs (1)
25public int Count => _entries.Count;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyTabCollection.cs (1)
24public int Count
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.MultiMergeCollection.cs (1)
22public int Count => _items?.Length ?? 0;
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (1)
71public int Count => _owner.TabCount;
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (1)
114public int Count => _owner._childCount;
System\Windows\Forms\Controls\Unsupported\ContextMenu\Menu.MenuItemCollection.cs (1)
38public int Count => throw null;
System\Windows\Forms\Controls\Unsupported\DataGrid\GridColumnStylesCollection.cs (1)
54int ICollection.Count => throw null;
System\Windows\Forms\Controls\Unsupported\DataGrid\GridTableStylesCollection.cs (1)
52int ICollection.Count => throw null;
System\Windows\Forms\Controls\Unsupported\StatusBar\StatusBar.StatusBarPanelCollection.cs (1)
44public int Count => throw null;
System\Windows\Forms\Controls\Unsupported\ToolBar\ToolBar.ToolBarButtonCollection.cs (1)
42public int Count => throw null;
System\Windows\Forms\Controls\WebBrowser\HtmlElementCollection.cs (1)
140public int Count
System\Windows\Forms\Controls\WebBrowser\HtmlWindowCollection.cs (1)
82public int Count
System\Windows\Forms\DataBinding\BindingContext.cs (1)
30int ICollection.Count
System\Windows\Forms\DataBinding\BindingSource.cs (1)
1426public virtual int Count
System\Windows\Forms\Layout\ArrangedElementCollection.cs (1)
144public virtual int Count => InnerList.Count;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (1)
131public int Count => _innerList.Count;
System.Windows.Forms.Design (4)
System\ComponentModel\Design\DesignSurfaceCollection.cs (1)
50int ICollection.Count => Count;
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
22public override int Count => _realCollection.Count;
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (1)
188int ICollection.Count => Count;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2153public override int Count => _realCollection.Count;
System.Windows.Forms.Primitives (1)
System\Windows\Forms\NonNullCollection.cs (1)
32public int Count => _list.Count;
System.Windows.Forms.Tests (1)
System\Windows\Forms\BindingSourceTests.cs (1)
772public int Count => _innerList.Count;
System.Xaml.Tests (2)
System\Xaml\XamlTypeTests.cs (2)
3203public int Count => throw new NotImplementedException(); 3265public int Count => throw new NotImplementedException();
Test.Utilities (16)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
Text.Analyzers (16)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
86public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
33public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
58public readonly int Count => ReadOnlyDictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
82public int Count => _set.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
83public int Count => _list.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
26public int Count => _builder.Count;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
35public readonly int Count => ReadOnlyList.Count;
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
124int ICollection.Count => Length;
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
230public int Count => _count - _freeCount; 1339public int Count => _dictionary.Count; 1547public int Count => _dictionary.Count;
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
UIAutomationClient (1)
System\Windows\Automation\AutomationElementCollection.cs (1)
86public int Count
1052 references to Count
DesignSurfaceExt (1)
DesignSurfaceExt.cs (1)
105if (LoadErrors.Count > 0)
dotnet-svcutil-lib (94)
CodeDomFixup\CollectionHelpers.cs (2)
14for (int i = 0; i < list.Count; i++) 31for (int i = list.Count - 1; i >= 0; i--)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
3349if (importList.Keys.Count > 0)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaAny.cs (1)
90if (i < _namespaceList.Enumerate.Count)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (2)
734if (Schemas(tns).Count == 0) 1202if (Schemas(tns).Count == 0)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (1)
994ArrayList expected = new ArrayList(elements.Count);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (4)
3573T[] arrDst = new T[listSrc.Count]; 3575for (int i = 0; i < listSrc.Count; i++) 3601object[] arrDst = new object[listSrc.Count]; 3603for (int i = 0; i < listSrc.Count; i++)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (1)
657get { return _elements != null && _elements.Values.Count > 0; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (2)
1321ElementAccessor[] accessors = new ElementAccessor[namespaces.Count == 0 ? 1 : namespaces.Count];
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (3)
60if (values.Count == 0) 62if (values.Count == 1) 435if (originals != null && originals.Count > 0)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (1)
1322int arrayLength = typeof(ICollection).IsAssignableFrom(type) ? ((ICollection)o).Count : -1;
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathArrayIterator.cs (4)
54Debug.Assert(index <= list.Count); 65public override int Count { get { return list.Count; } } 69Debug.Assert(index <= list.Count); 70if (index == list.Count)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (1)
561return (tempDictImitation.Count == 0);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
470IncrementCollectionCount(xmlWriter, collection.Count);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
171if (exception.Data != null && exception.Data.Count > 0)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
295if (exception.Data != null && exception.Data.Count > 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (1)
1174if (schemas == null || schemas.Count == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataSet.cs (3)
287for (int i = 0; i < ((System.Collections.ICollection)a).Count; i++) 298for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 339for (int i = 0; i < ((System.Collections.ICollection)a).Count; i++)
FrameworkFork\System.Web.Services\Services\Description\ServiceDescription.cs (9)
1639for (int i = 0; i < List.Count; i++) 1658for (int i = 0; i < List.Count; i++) 1676for (int i = 0; i < List.Count; i++) 1695for (int i = 0; i < List.Count; i++) 1937for (int i = 0; i < List.Count; i++) 1957for (int i = 0; i < List.Count; i++) 1977if (List.Count == 0) 1981else if (List.Count == 1) 3160for (int i = 0; i < List.Count; i++)
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (54)
66for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 83for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 94for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 104for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 114for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 124for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 177for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 194for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 248for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 419for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 462for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 515for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 560for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 613for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 793for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 883for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 920for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 998for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 1047for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 1403for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 1783for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 1800for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 1857for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 1874for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 1901for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 1955for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2016for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2077for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2137for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2154for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2209for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2268for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2285for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2349for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2380for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2467for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2713for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2894for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2964for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 3054for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 3104for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 3255for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 3880for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 4016for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 4279for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 4328for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 4485for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 4576for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 4697for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 4764for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 4830for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 4936for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 5078for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 5161for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++)
Shared\Options\OptionValueParser.cs (1)
198value = $"Count:{collection.Count}";
GenerateDocumentationAndConfigFiles (4)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
57return collection.Count == count; 94return collection.Count > count; 131return collection.Count < count;
InMemory.FunctionalTests (1)
HttpsConnectionMiddlewareTests.cs (1)
861for (var i = 0; i < list.Count; i++)
InteropClient (5)
Assert.cs (5)
118if (expected.Count != actual.Count) 120throw new InvalidOperationException($"Collection lengths differ. {expected.Count} but got {actual.Count}."); 123for (var i = 0; i < expected.Count; i++)
Metrics (4)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
57return collection.Count == count; 94return collection.Count > count; 131return collection.Count < count;
Metrics.Legacy (4)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
57return collection.Count == count; 94return collection.Count > count; 131return collection.Count < count;
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Internal\Json\JsonConverterHelper.cs (2)
183return dictionary.Count == 0; 188return list.Count == 0;
Microsoft.AspNetCore.JsonPatch (6)
Internal\ListAdapter.cs (6)
80value = list[list.Count - 1]; 111list.RemoveAt(list.Count - 1); 148list[list.Count - 1] = convertedValue; 218if (index < 0 || index >= list.Count) 311if (position >= 0 && position < list.Count) 319else if (position == list.Count && operationType == OperationType.Add)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
Helpers\GenericListOrJsonArrayUtilities.cs (1)
47return nonGenericList.Count;
Internal\ListAdapter.cs (1)
165if (index < 0 || index >= list.Count)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (4)
Internal\ListAdapterTest.cs (4)
242Assert.Equal(expected.Count, targetObject.Count); 297Assert.Equal(expected.Count, targetObject.Count);
Microsoft.AspNetCore.JsonPatch.Tests (4)
Internal\ListAdapterTest.cs (4)
242Assert.Equal(expected.Count, targetObject.Count); 297Assert.Equal(expected.Count, targetObject.Count);
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
ValidationIntegrationTests.cs (1)
2134return value is ICollection collection && collection.Count >= _length;
ValidationWithRecordIntegrationTests.cs (1)
1925return value is ICollection collection && collection.Count >= _length;
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
PageLoggerExtensionsTest.cs (1)
179Assert.Equal(2, testSink.Writes.Count);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
DefaultDisplayTemplates.cs (1)
107var result = collection == null ? new HtmlContentBuilder() : new HtmlContentBuilder(collection.Count);
DefaultEditorTemplates.cs (1)
89var result = collection == null ? new HtmlContentBuilder() : new HtmlContentBuilder(collection.Count);
Microsoft.AspNetCore.OutputCaching.Tests (2)
OutputCacheMiddlewareTests.cs (2)
194Assert.Equal(2, sink.Writes.Count); 236Assert.Equal(2, sink.Writes.Count);
Microsoft.AspNetCore.ResponseCaching.Tests (2)
ResponseCachingMiddlewareTests.cs (2)
205Assert.Equal(2, sink.Writes.Count); 238Assert.Equal(2, sink.Writes.Count);
Microsoft.Build (17)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (7)
62if (parameterValue == null || parameterValue.Count == 0) 75if (firstItem.CloneCustomMetadata().Count > 0) 82bool specialTreatmentForSingle = (parameterValue.Count == 1 && !firstEntryIsTaskItemWithSomeCustomMetadata); 125for (int i = 0; i < parameterValue.Count; i++) 139if (!specialTreatmentForSingle && i < parameterValue.Count - 1) 197int count = customMetadata.Count; 346int count = items.Count;
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1327if (parameterValueAsList?.Count > 0 || (parameterValueAsList == null && !legacyBehavior))
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
216object? parameterValue = taskParameterEventArgs.Items?.Count switch
Collections\CopyOnReadEnumerable.cs (1)
71int count = backingCollection.Count;
CommunicationsUtilities.cs (2)
491if (vars.Count == lastEnvironmentVariables?.Count) 512Dictionary<string, string> table = new(vars.Count, StringComparer.OrdinalIgnoreCase);
Evaluation\Expander.cs (1)
1517if (dictionary.Count > 0)
Instance\ProjectItemInstance.cs (1)
970get { return MetadataNames.Count; }
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
886count = arrayList.Count;
TaskParameter.cs (1)
322if (customMetadata?.Count > 0)
Utilities\Utilities.cs (1)
610return collection?.Count ?? 0;
Microsoft.Build.BuildCheck.UnitTests (1)
TaskInvocationAnalysisDataTests.cs (1)
147listValue.Count.ShouldBe(2);
Microsoft.Build.Engine.OM.UnitTests (2)
Instance\ProjectItemInstance_Tests.cs (2)
326Assert.Equal(1 + BuiltInMetadataCount, taskItem.MetadataNames.Count); 419Assert.Equal(0 + BuiltInMetadataCount, taskItem.MetadataNames.Count);
Microsoft.Build.Engine.UnitTests (5)
BackEnd\TaskHostConfiguration_Tests.cs (2)
774Assert.Equal(metadataFromX.Count, metadataFromY.Count);
Evaluation\ExpressionShredder_Tests.cs (1)
525Console.WriteLine("Expecting " + expected.Count + " distinct values for <" + test + ">");
TestComparers\TaskItemComparer.cs (2)
46if (x.CloneCustomMetadata().Count != y.CloneCustomMetadata().Count)
Microsoft.Build.Framework (3)
BuildException\BuildExceptionBase.cs (1)
112Debug.Assert((exception.Data?.Count ?? 0) == 0,
ITaskItemExtensions.cs (1)
41var list = new KeyValuePair<string, string>[customMetadata.Count];
TaskParameterEventArgs.cs (1)
200int count = items.Count;
Microsoft.Build.Tasks.Core (3)
CommunicationsUtilities.cs (2)
491if (vars.Count == lastEnvironmentVariables?.Count) 512Dictionary<string, string> table = new(vars.Count, StringComparer.OrdinalIgnoreCase);
WriteCodeFragment.cs (1)
196var orderedParameters = new List<AttributeParameter?>(new AttributeParameter?[customMetadata.Count + 1] /* max possible slots needed */);
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
1167return c.Count;
Microsoft.Build.Utilities.Core (1)
TaskItem.cs (1)
121if (itemMetadata.Count > 0)
Microsoft.CodeAnalysis (4)
PEWriter\Miscellaneous.cs (2)
40return asIList.Count != 0; 74return (uint)asIList.Count;
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
TreeDumper.cs (1)
115&& node.Value is IList { Count: 0 })
Microsoft.CodeAnalysis.Analyzers (4)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
57return collection.Count == count; 94return collection.Count > count; 131return collection.Count < count;
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
57return collection.Count == count; 94return collection.Count > count; 131return collection.Count < count;
Microsoft.CodeAnalysis.BannedApiAnalyzers (4)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
57return collection.Count == count; 94return collection.Count > count; 131return collection.Count < count;
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
Microsoft.CodeAnalysis.Collections.Package (1)
Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (1)
23TryGetNoArgInt32Property(namedType, nameof(ICollection.Count));
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (1)
23TryGetNoArgInt32Property(namedType, nameof(ICollection.Count));
Microsoft.CodeAnalysis.EditorFeatures (1)
InlineRename\UI\SmartRename\SmartRenameUserInputComboBox.xaml.cs (1)
121if (e.AddedItems.Count > 0)
Microsoft.CodeAnalysis.Extensions.Package (1)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
Microsoft.CodeAnalysis.Features (2)
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
35private const string Count = nameof(IList.Count);
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
72if (memberAccessName is not nameof(Array.Length) and not nameof(IList.Count))
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (4)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
57return collection.Count == count; 94return collection.Count > count; 131return collection.Count < count;
Microsoft.CodeAnalysis.PublicApiAnalyzers (4)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
57return collection.Count == count; 94return collection.Count > count; 131return collection.Count < count;
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
57return collection.Count == count; 94return collection.Count > count; 131return collection.Count < count;
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (1)
550result.Append(collection.Count.ToString());
Microsoft.CodeAnalysis.Threading.Package (1)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
Microsoft.CodeAnalysis.UnitTests (47)
Collections\ImmutableListTestBase.cs (1)
26protected static readonly Func<IList, object?, object> RemoveFunc = (l, v) => { l.Remove(v); return l.Count; };
Collections\ImmutableSegmentedListBuilderTest.cs (1)
325Assert.Equal(0, list.Count);
Collections\ImmutableSetTest.cs (1)
197array = new string[builder.Count + 1];
Collections\List\CollectionAsserts.cs (2)
27Assert.Equal(expected.Count, actual!.Count);
Collections\List\ICollection.NonGeneric.Tests.cs (1)
123Assert.Equal(count, collection.Count);
Collections\List\IList.NonGeneric.Tests.cs (39)
48while (collection.Count < numberOfItemsToAdd) 139if (casted.Count > 0 && !casted.IsFixedSize && !casted.IsReadOnly) 149if (casted.Count > 0 && !casted.IsFixedSize && !casted.IsReadOnly) 162if (casted.Count > 0 && !casted.IsReadOnly) 175if (casted.Count > 0 && !casted.IsFixedSize && !casted.IsReadOnly) 256Assert.Equal(count, list.Count); 270Assert.Equal(count, list.Count); 282Assert.Equal(count, list.Count); 381Assert.Equal(count + 1, collection.Count); 397Assert.Equal(count * 2, collection.Count); 414Assert.Equal(count, collection.Count); 429Assert.Equal(count, collection.Count); 446Assert.Equal(count + 2, collection.Count); 460Assert.Equal(5, collection.Count); 500Assert.Equal(1, collection.Count); 512Assert.Equal(count, collection.Count); 545Assert.Equal(count, collection.Count); 550Assert.Equal(0, collection.Count); 610Assert.Equal(count + 2, collection.Count); 741Assert.Equal(count, list.Count); 754Assert.Equal(count + 1, list.Count); 767Assert.Equal(count, list.Count); 781Assert.Equal(count + 1, list.Count); 795Assert.Equal(count + 1, list.Count); 810Assert.Equal(count + 1, list.Count); 825Assert.Equal(count + 1, list.Count); 841Assert.Equal(count + 2, list.Count); 889Assert.Equal(count, collection.Count); 912Assert.Equal(count, list.Count); 932Assert.Equal(count - 1, collection.Count); 951Assert.Equal(count - 1, collection.Count); 969Assert.Equal(count - 1, collection.Count); 1001Assert.Equal(count, collection.Count); 1019Assert.Equal(count, list.Count); 1033Assert.Equal(count, list.Count); 1045Assert.Equal(count, list.Count); 1056Assert.Equal(count, list.Count); 1060Assert.Equal(index, list.Count); 1075Assert.Equal(count - index - 1, list.Count);
Collections\SegmentedArrayTests.cs (2)
59Assert.Equal(0, ((ICollection)data).Count); 131Assert.Equal(length, ((ICollection)data).Count);
Microsoft.CodeAnalysis.Workspaces (1)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
Microsoft.Extensions.Compliance.Redaction (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
120count = c.Count;
Microsoft.Extensions.Diagnostics.Probes (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
120count = c.Count;
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
120count = c.Count;
Microsoft.Extensions.FileSystemGlobbing (1)
MatcherExtensions.cs (1)
61List<string> result = matches is ICollection matchCollection ? new(matchCollection.Count) : new();
Microsoft.Extensions.Http.Resilience (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
120count = c.Count;
Microsoft.Extensions.Telemetry (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
120count = c.Count;
Microsoft.Maui.Controls (83)
BindableLayout\BindableLayout.cs (5)
369 var childrenCount = layoutChildren.Count; 420 if (layoutChildren.Count == 1) 439 else if (layoutChildren.Count > 1) 525 if (layoutChildren.Count == 1 && layoutChildren[0] == _currentEmptyView) 545 if (layout.Children.Count == 0 && _currentEmptyView != null)
IndicatorView\IndicatorView.cs (1)
177 Count = collection.Count;
Internals\NotifyCollectionChangedEventArgsExtensions.cs (8)
42 for (var i = 0; i < self.NewItems.Count; i++) 51 for (var i = 0; i < self.OldItems.Count; i++) 56 insertIndex -= self.OldItems.Count - 1; 58 for (var i = 0; i < self.OldItems.Count; i++) 67 for (var i = 0; i < self.OldItems.Count; i++) 72 if (self.OldStartingIndex < 0 || self.OldItems.Count != self.NewItems.Count) 75 for (var i = 0; i < self.OldItems.Count; i++)
Items\MarshalingObservableCollection.cs (3)
57 for (int n = 0; n < _internalCollection.Count; n++) 92 var count = args.OldItems.Count; 106 var startIndex = args.OldStartingIndex + args.OldItems.Count - 1;
LegacyLayouts\Layout.cs (2)
626 for (int i = 0; i < e.OldItems.Count; i++) 641 for (int i = 0; i < e.NewItems.Count; i++)
ListProxy.cs (3)
117 return _collection.Count; 260 if (index >= _list.Count) 276 if (_collection != null && index >= _collection.Count)
ListView\ListView.cs (1)
434 request = new Size(width, list.Count * RowHeight);
MultiPage.cs (10)
230 SetIndex((T)InternalChildren[i], i + e.NewItems.Count); 232 for (var i = 0; i < e.NewItems.Count; i++) 248 for (int i = removeIndex + e.OldItems.Count; i < Children.Count; i++) 251 for (var i = 0; i < e.OldItems.Count; i++) 272 for (int i = moveIndex + e.OldItems.Count; i <= e.NewStartingIndex; i++) 280 SetIndex(page, GetIndex(page) + e.OldItems.Count); 284 for (var i = 0; i < e.OldItems.Count; i++) 289 insertIndex -= e.OldItems.Count - 1; 291 for (var i = 0; i < e.OldItems.Count; i++) 304 for (int i = e.OldStartingIndex; i - e.OldStartingIndex < e.OldItems.Count; i++)
ObservableWrapper.cs (4)
181 if (e.NewStartingIndex == -1 || e.NewItems.Count > 1) 192 if (e.NewStartingIndex == -1 || e.OldStartingIndex == -1 || e.NewItems.Count > 1) 204 if (e.OldStartingIndex == -1 || e.OldItems.Count > 1) 216 if (e.NewStartingIndex == -1 || e.OldStartingIndex == -1 || e.NewItems.Count > 1)
Page\Page.cs (1)
739 for (var i = 0; i < e.OldItems.Count; i++)
Picker\Picker.cs (6)
328 index = e.OldStartingIndex + e.OldItems.Count - 1; 333 removeStart = Items.Count - e.OldItems.Count; 405 var item = index < ItemsSource.Count ? ItemsSource[index] : null; 443 int IItemDelegate<string>.GetCount() => Items?.Count ?? ItemsSource?.Count ?? 0; 451 if (index < ItemsSource?.Count) 470 return $"{base.GetDebuggerDisplay()}, Items = {ItemsSource?.Count ?? 0}, {selectedItemText}";
Shell\ShellContent.cs (1)
332 for (var i = 0; i < e.OldItems.Count; i++)
Shell\ShellElementCollection.cs (3)
22 public int Count => Inner.Count; 47 if (args?.NewItems?.Count > 0 && _pauseCollectionChanged) 186 for (var i = 0; i < Inner.Count; i++)
Shell\ShellItem.cs (1)
319 for (var i = 0; i < e.OldItems.Count; i++)
TemplatedItemsList.cs (34)
340 get { return ListProxy.Count; } 684 var contentItems = new List<TItem>(items.Count); 685 for (var i = 0; i < items.Count; i++) 805 SetIndex(_templatedObjects[i], i + e.NewItems.Count); 807 newItems = new List<TemplatedItemsList<TView, TItem>>(e.NewItems.Count); 809 for (var i = 0; i < e.NewItems.Count; i++) 824 for (int i = removeIndex + e.OldItems.Count; i < _templatedObjects.Count; i++) 827 oldItems = new List<TemplatedItemsList<TView, TItem>>(e.OldItems.Count); 828 for (var i = 0; i < e.OldItems.Count; i++) 847 oldItems = new List<TemplatedItemsList<TView, TItem>>(e.OldItems.Count); 848 newItems = new List<TemplatedItemsList<TView, TItem>>(e.NewItems.Count); 850 for (var i = 0; i < e.OldItems.Count; i++) 878 for (int i = moveIndex + e.OldItems.Count; i <= e.NewStartingIndex; i++) 886 SetIndex(item, GetIndex(item) + e.OldItems.Count); 890 oldItems = new List<TemplatedItemsList<TView, TItem>>(e.OldItems.Count); 892 for (var i = 0; i < e.OldItems.Count; i++) 902 insertIndex -= e.OldItems.Count - 1; 967 if (ListProxy.Count == 0) 1000 maxindex = Math.Max(maxindex, e.NewStartingIndex + e.NewItems.Count); 1002 maxindex = Math.Max(maxindex, e.OldStartingIndex + e.OldItems.Count); 1012 SetIndex(_templatedObjects[i], i + e.NewItems.Count); 1014 _templatedObjects.InsertRange(e.NewStartingIndex, Enumerable.Repeat<TItem>(null, e.NewItems.Count)); 1035 for (int i = moveIndex + e.OldItems.Count; i <= e.NewStartingIndex; i++) 1044 SetIndex(item, GetIndex(item) + e.OldItems.Count); 1048 TItem[] itemsToMove = _templatedObjects.Skip(e.OldStartingIndex).Take(e.OldItems.Count).ToArray(); 1050 _templatedObjects.RemoveRange(e.OldStartingIndex, e.OldItems.Count); 1062 for (int i = removeIndex + e.OldItems.Count; i < _templatedObjects.Count; i++) 1065 var items = new TItem[e.OldItems.Count]; 1076 _templatedObjects.RemoveRange(e.OldStartingIndex, e.OldItems.Count); 1091 for (var i = 0; i < oldItems.Count; i++) 1171 for (var i = 0; i < e.NewItems.Count; i++) 1180 for (var i = 0; i < e.OldItems.Count; i++) 1189 for (var i = 0; i < e.OldItems.Count; i++) 1304 var newList = new List<string>(list.Count);
Microsoft.Maui.Controls.Xaml (2)
MarkupExtensions\ArrayExtension.cs (2)
32 var array = Array.CreateInstance(Type, Items.Count); 33 for (var i = 0; i < Items.Count; i++)
Microsoft.ML.Core (8)
CommandLine\CmdParser.cs (8)
1969if (vals == null || vals.Count == 0) 1977if (defs != null && vals.Count == defs.Count) 1981if (i >= vals.Count) 2068if (vals == null || vals.Count == 0) 2076if (defs != null && vals.Count == defs.Count) 2080if (i >= vals.Count)
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Collection.vb (1)
609Private ReadOnly Property ICollectionCount() As Integer Implements ICollection.Count
Microsoft.VisualStudio.LanguageServices (2)
EditorConfigSettings\SettingsEditorControl.xaml.cs (2)
124var previousTabItem = e.RemovedItems.Count > 0 ? e.RemovedItems[0] as TabItem : null; 125var selectedTabItem = e.AddedItems.Count > 0 ? e.AddedItems[0] as TabItem : null;
MSBuild (3)
CommunicationsUtilities.cs (2)
491if (vars.Count == lastEnvironmentVariables?.Count) 512Dictionary<string, string> table = new(vars.Count, StringComparer.OrdinalIgnoreCase);
TaskParameter.cs (1)
322if (customMetadata?.Count > 0)
MSBuildTaskHost (2)
BuildExceptionBase.cs (1)
112Debug.Assert((exception.Data?.Count ?? 0) == 0,
TaskParameter.cs (1)
322if (customMetadata?.Count > 0)
PresentationBuildTasks (1)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1839object[] args = new object[desc.Arguments.Count];
PresentationCore (12)
MS\Internal\Ink\ExtendedPropertyCollection.cs (2)
193/// <seealso cref="System.Collections.ICollection.Count"/> 288/// <seealso cref="System.Collections.ICollection.Count"/>
System\Windows\FreezableCollection.cs (1)
654return collectionAsICollection.Count;
System\Windows\Input\Command\CommandBindingCollection.cs (3)
40if (commandBindings is { Count: > 0 }) 180if (collection.Count <= 0) return; 181_innerCBList ??= new System.Collections.Generic.List<CommandBinding>(collection.Count);
System\Windows\Input\Command\InputBindingCollection.cs (3)
40if (inputBindings != null && inputBindings.Count > 0) 245if ( collection.Count > 0) 248_innerBindingList = new System.Collections.Generic.List<InputBinding>(collection.Count);
System\Windows\Input\Command\InputGestureCollection.cs (3)
40if (inputGestures != null && inputGestures.Count > 0) 272if ( collection.Count > 0) 275_innerGestureList = new System.Collections.Generic.List<InputGesture>(collection.Count);
PresentationFramework (218)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
649switch (startNode.Children.Count)
MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
209if (_annotationComponent.AttachedAnnotations.Count > 0)
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (2)
88if (component.AttachedAnnotations.Count == 0) 241if (component.AttachedAnnotations.Count == 0)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (2)
1099Debug.Assert((first.AttachedAnnotations != null) && (first.AttachedAnnotations.Count > 0), "first AttachedAnchor is null"); 1101Debug.Assert((second.AttachedAnnotations != null) && (second.AttachedAnnotations.Count > 0), "second AttachedAnchor is null");
MS\Internal\Data\CollectionViewGroupInternal.cs (1)
635int n = (_list != null) ? _list.Count : 0;
MS\Internal\Data\CompositeCollectionView.cs (5)
1433if (e.NewItems.Count != 1) 1438if (e.OldItems.Count != 1) 1443if (e.NewItems.Count != 1 || e.OldItems.Count != 1) 1448if (e.NewItems.Count != 1)
MS\Internal\Data\DataExtensionMethods.cs (1)
40return list.Search(0, list.Count, value, comparer);
MS\Internal\Data\EnumerableCollectionView.cs (6)
404for (int i = 0; i < args.NewItems.Count; ++i) 411for (int i = args.NewItems.Count - 1; i >= 0; --i) 422for (int i = args.OldItems.Count - 1, index = args.OldStartingIndex + i; i >= 0; --i, --index) 432for (int i = args.NewItems.Count - 1, index = args.NewStartingIndex + i; i >= 0; --i, --index) 447for (int i = args.OldItems.Count - 1, 464i < args.OldItems.Count;
MS\Internal\Data\IndexedEnumerable.cs (2)
524value = Collection.Count; 557isEmpty = (Collection.Count == 0);
MS\Internal\Data\PropertyPathWorker.cs (1)
277if (0 <= index && index < ilist.Count)
MS\Internal\Data\StaticPropertyChangedEventManager.cs (1)
457String[] keys = new String[ic.Count];
MS\Internal\Data\ValueChangedEventManager.cs (1)
151PropertyDescriptor[] keys = new PropertyDescriptor[ic.Count];
MS\Internal\Data\ValueTable.cs (1)
281ValueTableKey[] localKeys = new ValueTableKey[keys.Count];
MS\Internal\Documents\ContentElementCollection.cs (1)
534/// <see cref="ICollection.Count"/>
MS\Internal\IO\Packaging\XamlFilter.cs (1)
314int length = keys.Count;
MS\Internal\ListOfObject.cs (1)
76get { return _list.Count; }
MS\Internal\TraceData.cs (1)
259ICollection ic => string.Create(TypeConverterHelper.InvariantEnglishUS, $"{type.Name} (hash={AvTrace.GetHashCodeHelper(o)} Count={ic.Count})"),
System\Windows\Annotations\AnnotationService.cs (1)
918List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(attachedAnnotations.Count);
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
287int numAdded = e.AddedItems.Count;
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (4)
380int numSelected = this.OwningDataGrid.SelectedItems.Count; 381int numAdded = e.AddedItems.Count; 396for (i = 0; i < e.AddedItems.Count; i++) 405for (i = 0; i < e.RemovedItems.Count; i++)
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (5)
83children = new List<AutomationPeer>(childItems.Count); 168if (items != null && items.Count > 0) 191if (startIndex == 0 || startIndex == items.Count) 197for (int i = startIndex; i < items.Count; i++) 209for (int i = startIndex; i < items.Count; i++)
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (2)
301this.OwningDataGrid.SelectedItems.Count > 0) 434children = new List<AutomationPeer>(childItems.Count);
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
76children = new List<AutomationPeer>(childItems.Count); 140children = new List<AutomationPeer>(childItems.Count);
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (2)
144int numAdded = e.AddedItems.Count; 145int numRemoved = e.RemovedItems.Count;
System\Windows\Controls\Calendar.cs (2)
1108if (e.AddedItems.Count != e.RemovedItems.Count)
System\Windows\Controls\ColumnDefinition.cs (1)
369/// <seealso cref="ICollection.Count"/>
System\Windows\Controls\DataErrorValidationRule.cs (1)
48for (int i=items.Count-1; i>=0; --i)
System\Windows\Controls\DataGrid.cs (17)
279int numItems = list.Count; 310var count = list.Count; 324if (columns != null && columns.Count > 0) 2604int numSelected = SelectedItems.Count; 3822int itemsSelected = SelectedItems.Count; 4432if (dataGrid.SelectedItems.Count > 0) 4946if (SelectedItems.Count > 0) 5031if (SelectedItems.Count > 0) 5126if (SelectedItems.Count > 0) 7244Debug.Assert(e.NewItems.Count == 1, "SortDescriptionCollection should handle one element at a time"); 7255Debug.Assert(e.OldItems.Count == 1, "SortDescriptionCollection should handle one element at a time"); 7275Debug.Assert(e.OldItems.Count == 1 && e.NewItems.Count == 1, "SortDescriptionCollection should handle one element at a time"); 7389Debug.Assert(e.NewItems.Count == 1, "GroupDescriptionCollection should handle one element at a time"); 7397Debug.Assert(e.OldItems.Count == 1, "GroupDescriptionCollection should handle one element at a time"); 7408Debug.Assert(e.OldItems.Count == 1 && e.NewItems.Count == 1, "GroupDescriptionCollection should handle one element at a time");
System\Windows\Controls\DataGridCellsPanel.cs (10)
631if (childIndex >= children.Count || !(children[childIndex] == child)) 829if (RealizedChildren.Count == 0 && columnCount > 0) 1034int childrenCount = children.Count; 1316if (children.Count != 0 && 1562if (children.Count == blockElementCount) 1567Debug.Assert(children.Count > blockElementCount, "Element count from blocks can't be less than total children count"); 1572for (int i = 0, count = children.Count; i < count; i++) 1582for (int i = 0, count = children.Count; i < count; i++) 1635if (children.Count == columns.Count) 1642int k=0, n=children.Count;
System\Windows\Controls\DataGridColumnCollection.cs (7)
410newColumns.Count == 1, 554oldColumns.Count == 1, 595if (oldColumns != null && oldColumns.Count > 0 && newColumns != null && newColumns.Count > 0) 597Debug.Assert(oldColumns.Count == 1 && newColumns.Count == 1, "Multi replace isn't possible with ObservableCollection"); 626var count = oldColumns.Count;
System\Windows\Controls\DataGridColumnHeaderCollection.cs (2)
243object[] headers = new object[columns.Count]; 245for (int i = 0; i < columns.Count; i++)
System\Windows\Controls\DataGridRow.cs (1)
940if (bindingGroup != null && bindingGroup.Items.Count > 0)
System\Windows\Controls\DatePicker.cs (4)
969Debug.Assert(e.AddedItems.Count < 2); 971if (e.AddedItems.Count > 0 && this.SelectedDate.HasValue && DateTime.Compare((DateTime)e.AddedItems[0], this.SelectedDate.Value) != 0) 977if (e.AddedItems.Count == 0) 985if (e.AddedItems.Count > 0)
System\Windows\Controls\ItemCollection.cs (10)
2172if (clone.Count + e.NewItems.Count != origin.Count) 2174for (int i = 0; i < e.NewItems.Count; i++) 2180if (clone.Count - e.OldItems.Count != origin.Count) 2183for (int i = 0; i < e.OldItems.Count; i++) 2193for (int i = 0; i < e.OldItems.Count; i++) 2203if (e.NewItems.Count == 1) 2210for (int i = 0; i < e.OldItems.Count; i++) 2214for (int i = 0; i < e.NewItems.Count; i++) 2240if (clone.Count > 0) 2245for (int i = 0, n = master.Count; i < n; ++i)
System\Windows\Controls\ItemContainerGenerator.cs (16)
466uib.ItemCount = ItemsInternal.Count; 528return ItemsInternal.Count + position.Offset; 902for (index=0, n=ItemsInternal.Count; index < n; ++index) 1009if (accumulatedCount != _items.Count) 1011errors.Add(SR.Format(SR.Generator_CountIsWrong, accumulatedCount, _items.Count)); 1026object actualItem = (index < _items.Count) ? _items[index] : null; 1327_done = (_factory.ItemsInternal.Count == 0); 1377if (!(0 <= itemIndex && itemIndex < items.Count)) 1685state.ItemIndex = state.Count = ItemsInternal.Count; 1966if (items.Count > 0) 2229(ItemsInternal.Count == correctIndex + block.ItemCount - deletionOffset); 2391if (args.NewItems.Count != 1) 2397if (args.OldItems.Count != 1) 2406if (args.OldItems.Count != 1) 2416if (args.OldItems.Count != 1) 2571if (Level > 0 && ItemsInternal.Count == 0)
System\Windows\Controls\MultipleCopiesCollection.cs (4)
50e.NewItems.Count == 1, 57e.NewItems.Count == 1, 64e.OldItems.Count == 1, 71e.NewItems.Count == 1,
System\Windows\Controls\Primitives\Selector.cs (4)
872if (e.NewItems.Count != 1) 879if (e.OldItems.Count != 1) 901if (e.NewItems.Count != 1 || e.OldItems.Count != 1)
System\Windows\Controls\RowDefinition.cs (1)
364/// <seealso cref="ICollection.Count"/>
System\Windows\Controls\SelectionChangedEventArgs.cs (2)
40_removedItems = new object[removedItems.Count]; 43_addedItems = new object[addedItems.Count];
System\Windows\Controls\VirtualizedCellInfoCollection.cs (3)
1177int numRows = rows.Count; 1401if ((region.Width == numColumns) && (region.Height == rows.Count)) 1410int numRows = rows.Count;
System\Windows\Controls\VirtualizingStackPanel.cs (18)
1630for (int i = 0; i < items.Count; i++) 2227int itemCount = items.Count; 2592firstItemInViewportChildIndex < children.Count) 2805int childrenCount = children.Count; 3345int itemCount = items.Count; 3387for (int i = _firstItemInExtendedViewportChildIndex; i < children.Count; ++i) 3793int itemCount = items.Count; 38720, items.Count, out distance); 5651Debug.Assert(itemIndex < items.Count, "index out of range"); 5847count = children.Count; 6828for (int i=0; i<children.Count; i++) 7454for (int i=0; i < children.Count; i++) 7606for (int i=0; i < children.Count; i++) 8899if (childIndex < 0 || childIndex >= children.Count || !(children[childIndex] == child)) 9047if (children.Count == 0) 9073for (int childIndex = 0; childIndex < children.Count; childIndex++) 9536return((ItemContainerGenerator)Generator).ItemsInternal.Count; 11246for (int i = 0, childCount = children.Count; i < childCount; i++)
System\Windows\Data\BindingGroup.cs (4)
175for (int i=items.Count-1; i>=0; --i) 337for (int i=items.Count-1; i>=0; --i) 378for (int i=items.Count-1; i>=0; --i) 1234for (int i=items.Count-1; i>=0; --i)
System\Windows\Data\BindingListCollectionView.cs (19)
396CollectionProxy.Count == 0); } 906if (index >= InternalList.Count || !System.Windows.Controls.ItemsControl.EqualsEx(item, GetItemAt(index))) 1303if ((_sort != null) && (_sort.Count > 0) && (CollectionProxy != null) && (CollectionProxy.Count > 0)) 1660CollectionProxy.Count; 1726if (index >= CollectionProxy.Count) 1903if (InternalList.Count == _cachedList.Count) 1917if (InternalList.Count != _cachedList.Count) 1929if (InternalList.Count != _cachedList.Count) 1986if (InternalList.Count != _cachedList.Count) 2270for (int k=0, n=list.Count; k<n; ++k) 2433if (e.NewItems.Count != 1) 2438if (e.OldItems.Count != 1) 2443if (e.NewItems.Count != 1 || e.OldItems.Count != 1) 2448if (e.NewItems.Count != 1)
System\Windows\Data\CollectionContainer.cs (3)
90if (collection != null && collection.Count == 0) 135return coll.Count; 158return (coll.Count == 0);
System\Windows\Data\CollectionView.cs (5)
1951if (e.NewItems.Count != 1) 1956if (e.OldItems.Count != 1) 1963if (e.NewItems.Count != 1 || e.OldItems.Count != 1) 1968if (e.NewItems.Count != 1)
System\Windows\Data\ListCollectionView.cs (19)
58if (InternalList.Count == 0) // don't call virtual IsEmpty in ctor 1243else if (localIndex < list.Count - 1 && ActiveComparer.Compare(editItem, list[localIndex+1]) > 0) 1246toIndex = list.Search(localIndex+1, list.Count-localIndex-1, editItem, ActiveComparer); 1866object oldItem = (args.OldItems != null && args.OldItems.Count > 0) ? args.OldItems[0] : null; 1867object newItem = (args.NewItems != null && args.NewItems.Count > 0) ? args.NewItems[0] : null; 1931if (localOldIndex < InternalList.Count && 1993if (localOldIndex < InternalList.Count && 2333return delta + InternalList.Count; 2500if (e.NewItems.Count != 1) 2505if (e.OldItems.Count != 1) 2510if (e.NewItems.Count != 1 || e.OldItems.Count != 1) 2515if (e.NewItems.Count != 1) 2557int size = list.Count; 2668if (index < -1 || index > ilFull.Count) 2669throw new InvalidOperationException(SR.Format(SR.CollectionChangeIndexOutOfRange, index, ilFull.Count)); 2772while (fullIndex < index && localIndex < InternalList.Count) 2962for (int k=0, n=InternalList.Count; k<n; ++k) 3177for (index = lsi.GetAndClearStartingIndex(); index < ilFull.Count; ++index)
System\Windows\Documents\AdornerLayer.cs (1)
790UIElement[] keys = new UIElement[keyCollection.Count];
System\Windows\Documents\DocumentSequence.cs (1)
715if (args.NewItems.Count != 1)
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
593if (args.NewItems.Count != 1)
System\Windows\Documents\InputScopeAttribute.cs (2)
53count = _inputScope.Names.Count; 81count = _inputScope == null ? 0 : _inputScope.PhraseList.Count;
System\Windows\Documents\TableCellCollection.cs (1)
348/// <see cref="ICollection.Count"/>
System\Windows\Documents\TableColumnCollection.cs (1)
355/// <see cref="ICollection.Count"/>
System\Windows\Documents\TableRowCollection.cs (1)
348/// <see cref="ICollection.Count"/>
System\Windows\Documents\TableRowGroupCollection.cs (1)
348/// <see cref="ICollection.Count"/>
System\Windows\Markup\Primitives\ElementMarkupObject.cs (3)
114if (collection != null && collection.Count < 1) 382if (ctorParameters != null && ctorParameters.Length == instanceDescriptor.Arguments.Count) 501DictionaryEntry[] entries = new DictionaryEntry[dictionary.Count];
System\Windows\ResourceDictionary.cs (6)
1893(e.NewItems != null && e.NewItems.Count > 0) || 1894(e.OldItems != null && e.OldItems.Count > 0), 1905oldDictionaries = new List<ResourceDictionary>(e.OldItems.Count); 1907for (int i = 0; i < e.OldItems.Count; i++) 1923newDictionaries = new List<ResourceDictionary>(e.NewItems.Count); 1925for (int i = 0; i < e.NewItems.Count; i++)
System\Windows\VisualStateGroup.cs (1)
71for (int stateIndex = 0; stateIndex < States.Count; ++stateIndex)
Roslyn.Diagnostics.Analyzers (4)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
57return collection.Count == count; 94return collection.Count > count; 131return collection.Count < count;
Shared (1)
Data.Validation\LengthAttribute.cs (1)
120count = c.Count;
System.Collections (3)
System\Collections\Generic\SortedSet.cs (3)
1215return c.Count > 0; 1236if (other is ICollection c && c.Count == 0) 1266if (other is ICollection c && c.Count == 0)
System.Collections.Concurrent (2)
System\Collections\Concurrent\BlockingCollection.cs (2)
181int count = collection.Count; 199Initialize(collection, NON_BOUNDED, collection.Count);
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableExtensions.Minimal.cs (1)
37count = collection.Count;
System.Collections.NonGeneric (4)
System\Collections\Queue.cs (1)
68public Queue(ICollection col) : this(col?.Count ?? throw new ArgumentNullException(nameof(col)))
System\Collections\SortedList.cs (2)
155: this(comparer, d?.Count ?? throw new ArgumentNullException(nameof(d))) 167_size = d.Count;
System\Collections\Stack.cs (1)
55public Stack(ICollection col) : this(col?.Count ?? throw new ArgumentNullException(nameof(col)))
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\MaxLengthAttribute.cs (1)
123count = collection.Count;
System.ComponentModel.Composition (1)
Microsoft\Internal\Collections\CollectionServices.cs (1)
172return collection.Count switch
System.ComponentModel.TypeConverter (30)
System\ComponentModel\Design\DesignerCollection.cs (1)
45public int Count => _designers.Count;
System\ComponentModel\Design\Serialization\InstanceDescriptor.cs (5)
37object[] args = new object[arguments.Count]; 48if (Arguments.Count != 0) 59if (Arguments.Count != ci.GetParameters().Length) 70if (Arguments.Count != mi.GetParameters().Length) 115object?[] translatedArguments = new object[Arguments.Count];
System\ComponentModel\TypeConverter.cs (2)
454return _values.Count; 476_valueArray = new object[_values.Count];
System\ComponentModel\TypeDescriptor.cs (22)
442for (int idx = associations.Count - 1; idx >= 0; idx--) 574int memberCount = members.Count; 633for (int idx = associations.Count - 1; idx >= 0; idx--) 786Attribute[] attrArray = new Attribute[results.Count]; 1263EventDescriptor[] eventArray = new EventDescriptor[results.Count]; 1520PropertyDescriptor[] propArray = new PropertyDescriptor[results.Count]; 1589PropertyDescriptor[] propArray = new PropertyDescriptor[results.Count]; 1927PropertyDescriptor[] propArray = new PropertyDescriptor[list.Count]; 1933EventDescriptor[] eventArray = new EventDescriptor[list.Count]; 1997OrderedDictionary filterTable = new OrderedDictionary(members.Count); 2098Attribute[] attrArray = new Attribute[list.Count]; 2111PropertyDescriptor[] propArray = new PropertyDescriptor[list.Count]; 2124EventDescriptor[] eventArray = new EventDescriptor[list.Count]; 2160if (cache[s_pipelineInitializeKeys[pipelineType]] is ICollection cachedMembers && cachedMembers.Count == members.Count) 2197if (secondary == null || secondary.Count == 0) 2203if (cache?[s_pipelineMergeKeys[pipelineType]] is ICollection mergeCache && mergeCache.Count == (primary.Count + secondary.Count)) 2243ArrayList list = new ArrayList(primary.Count + secondary.Count); 2639for (int idx = associations.Count - 1; idx >= 0; idx--)
System.Data.Common (5)
System\Data\Common\AdapterUtil.Common.cs (2)
368return CollectionIndexInt32(index, collection.GetType(), collection.Count); 408return CollectionIndexInt32(index, collection.GetType(), collection.Count);
System\Data\Common\DbDataAdapter.cs (3)
703value = new IDataParameter[parameters.Count]; 1112batchCommands[0]._parameterCount = dataCommand.Parameters.Count; 1134batchCommands[commandCount]._parameterCount = dataCommand.Parameters.Count;
System.Data.Odbc (1)
Common\System\Data\Common\AdapterUtil.Odbc.cs (1)
425return CollectionIndexInt32(index, collection.GetType(), collection.Count);
System.Diagnostics.Process (1)
System\Diagnostics\ProcessStartInfo.cs (1)
100envVars.Count,
System.Drawing.Common.Tests (2)
System\Drawing\FontConverterTests.cs (2)
122Assert.Equal(expectedArguments, descriptor.Arguments.Count); 225Assert.Equal(6, values.Count); // The six supported values of Graphics unit: World, Pixel, Point, Inch, Document, Millimeter.
System.Linq (6)
System\Linq\AnyAll.cs (1)
37return ngc.Count != 0;
System\Linq\Cast.SpeedOpt.cs (3)
13public override int GetCount(bool onlyIfCheap) => _source.Count; 17TResult[] array = new TResult[_source.Count]; 30List<TResult> list = new(_source.Count);
System\Linq\Count.cs (2)
30return collection.Count; 128count = collection.Count;
System.Net.Http (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
143return $"{c.GetType().Name}({c.Count})";
System.Net.HttpListener (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
143return $"{c.GetType().Name}({c.Count})";
System\Net\HttpListenerPrefixCollection.cs (1)
70public int Count => _httpListener.PrefixCollection.Count;
System.Net.Mail (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
143return $"{c.GetType().Name}({c.Count})";
System.Net.NameResolution (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
143return $"{c.GetType().Name}({c.Count})";
System.Net.Primitives (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
143return $"{c.GetType().Name}({c.Count})";
System\Net\CookieContainer.cs (1)
888int listCount = list.Count;
System.Net.Quic (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
143return $"{c.GetType().Name}({c.Count})";
System.Net.Requests (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
143return $"{c.GetType().Name}({c.Count})";
System.Net.Security (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
143return $"{c.GetType().Name}({c.Count})";
System.Net.Sockets (26)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
143return $"{c.GetType().Name}({c.Count})";
System\Net\Sockets\Socket.cs (7)
2392if ((checkRead == null || checkRead.Count == 0) && 2393(checkWrite == null || checkWrite.Count == 0) && 2394(checkError == null || checkError.Count == 0)) 2399if (checkRead != null && checkRead.Count > MaxSelect) 2403if (checkWrite != null && checkWrite.Count > MaxSelect) 2407if (checkError != null && checkError.Count > MaxSelect) 4045for (int i = 0; (i < socketList.Count) && (refsAdded > 0); i++)
System\Net\Sockets\SocketPal.Unix.cs (18)
1794int checkReadInitialCount = checkRead != null ? checkRead.Count : 0; 1795int checkWriteInitialCount = checkWrite != null ? checkWrite.Count : 0; 1796int checkErrorInitialCount = checkError != null ? checkError.Count : 0; 1838Span<int> readFDs = checkRead?.Count > MaxStackAllocCount ? new int[checkRead.Count] : stackalloc int[checkRead?.Count ?? 0]; 1839Span<int> writeFDs = checkWrite?.Count > MaxStackAllocCount ? new int[checkWrite.Count] : stackalloc int[checkWrite?.Count ?? 0]; 1840Span<int> errorFDs = checkError?.Count > MaxStackAllocCount ? new int[checkError.Count] : stackalloc int[checkError?.Count ?? 0]; 1889if (socketList == null || socketList.Count == 0 ) 1894Debug.Assert(buffer.Length == socketList.Count); 1895for (int i = 0; i < socketList.Count; i++) 1923for (int i = socketList.Count - 1; i >= 0; --i) 1998int listCount = socketList.Count; 2034for (int i = socketList.Count - 1; i >= 0; --i, --arrEndOffset)
System.Net.WebSockets (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
143return $"{c.GetType().Name}({c.Count})";
System.ObjectModel (1)
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (1)
286public int Count => _list.Count;
System.Private.CoreLib (29)
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (27)
55int count = c.Count; 410int count = c.Count; 593int count = c.Count; 719get => _list.Count; 726public override int Count => _list.Count; 830if (_list.Count - index < count) 847if (_list.Count - index < count) 860return IndexOf(value, startIndex, _list.Count - startIndex); 897if (c.Count > 0) 920return LastIndexOf(value, _list.Count - 1, _list.Count); 930if (_list.Count == 0) 933if (startIndex < 0 || startIndex >= _list.Count) throw new ArgumentOutOfRangeException(nameof(startIndex), SR.ArgumentOutOfRange_IndexMustBeLess); 971if (_list.Count - index < count) 989if (_list.Count - index < count) 1007if (index < 0 || index > _list.Count - c.Count) 1012if (c.Count > 0) 1027if (_list.Count - index < count) 1036if (_list.Count - index < count) 1064Array array = Array.CreateInstance(type, _list.Count); 1484get { lock (_root) { return _list.Count; } } 1597public int Count => _list.Count; 1856public int Count => _list.Count; 2205int count = c.Count; 2403int count = c.Count; 2487if (c.Count > 0)
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (2)
348: this(d?.Count ?? 0, loadFactor, hcp, comparer) 358: this(d?.Count ?? 0, loadFactor, equalityComparer)
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
219Dictionary<object, object?> genericDictionaryObj = new Dictionary<object, object?>(dictionaryObj.Count);
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
423IncrementCollectionCount(xmlWriter, collection.Count);
System.Private.Windows.Core (1)
System\Collections\Generic\ListConverter.cs (1)
28public int Count => _values.Count;
System.Private.Xml (22)
System\Xml\Schema\XmlSchemaAny.cs (1)
73if (i < _namespaceList.Enumerate.Count)
System\Xml\Schema\XmlSchemaSet.cs (2)
603if (Schemas(tns).Count == 0) 1045if (Schemas(tns).Count == 0)
System\Xml\Schema\XmlSchemaValidator.cs (1)
946ArrayList expected = new ArrayList(elements.Count);
System\Xml\Schema\XmlValueConverter.cs (4)
3041T[] arrDst = new T[listSrc.Count]; 3043for (int i = 0; i < listSrc.Count; i++) 3069object[] arrDst = new object[listSrc.Count]; 3071for (int i = 0; i < listSrc.Count; i++)
System\Xml\Serialization\Compilation.cs (1)
308var scopes = new TypeScope[scopeTable.Keys.Count];
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
159for (int i = 0; i < arr.Count; i++)
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1215ElementAccessor[] accessors = new ElementAccessor[namespaces.Count == 0 ? 1 : namespaces.Count];
System\Xml\Serialization\XmlSchemas.cs (3)
44if (values.Count == 0) 46if (values.Count == 1) 328if (originals != null && originals.Count > 0)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
1287int arrayLength = typeof(ICollection).IsAssignableFrom(type) ? ((ICollection)o).Count : -1;
System\Xml\XPath\Internal\XPathArrayIterator.cs (4)
54Debug.Assert(index <= list.Count); 65public override int Count { get { return list.Count; } } 69Debug.Assert(index <= list.Count); 70if (index == list.Count)
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (2)
206if (seq != null && seq.Count == 1) 610for (int i = 0; i < list.Count; i++)
System.Text.Json (3)
System\Text\Json\Serialization\Converters\Collection\IListConverter.cs (2)
50for (; index < list.Count; index++) 57for (; index < list.Count; index++)
System\Text\Json\Serialization\ReadStack.cs (1)
309return collection.Count;
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\Parallel.cs (1)
2810if (exceptions == null || exceptions.Count == 0)
System.Windows.Controls.Ribbon (3)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1112if (e.AddedItems != null && e.AddedItems.Count > 0)
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (1)
547for (int i = 0; i < e.OldItems.Count; i++)
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (1)
329int removedCount = e.OldItems.Count;
System.Windows.Forms (67)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (11)
341Debug.Assert(DataBoundRowsCount() == CurrencyManager!.List!.Count || (_owner.Columns.Count == 0 && dataGridViewRowsCount == 0), 475if (_dataConnectionState[DATACONNECTIONSTATE_inDeleteOperation] && CurrencyManager.List.Count == 0) 494&& CurrencyManager.List.Count == (_owner.AllowUserToAddRowsInternal ? _owner.Rows.Count - 1 : _owner.Rows.Count)) 508Debug.Assert(CurrencyManager.List.Count == 1); 529Debug.Assert(CurrencyManager!.List!.Count == 0, "we deleted the row that the Child table forcefully added"); 552if (CurrencyManager.List.Count == DataBoundRowsCount()) 829if (_owner.NewRowIndex == CurrencyManager.List.Count) 837Debug.Assert(_owner.NewRowIndex == CurrencyManager.List.Count - 1); 1291if (CurrencyManager!.Position >= 0 && CurrencyManager.Position < CurrencyManager.List!.Count) 1304if (CurrencyManager.Position >= 0 && CurrencyManager.Position < CurrencyManager.List!.Count) 1394Debug.Assert(DataBoundRowsCount() == CurrencyManager.List!.Count, "if the back end was changed while in AddNew the DGV should have updated its rows collection");
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
3205if ((DataConnection.List?.Count ?? 0) == 0) 17715&& (!calledAddNewOnTheDataConnection || (DataConnection.List?.Count ?? 0) > 0)) 19967int rowCount = DataConnection!.CurrencyManager?.List.Count ?? 0; 25537if (list is not null && list.Count > 0) 25539int rowsCount = list.Count; 25556Debug.Assert(list.Count == rowsCount);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1427for (int i = 0; i < DataManager.List.Count; i++)
System\Windows\Forms\Controls\ListBoxes\ListBox.IntegerCollection.cs (1)
181EnsureSpace(items.Count);
System\Windows\Forms\Controls\ListControl\ListControl.cs (5)
478if (items is null || items.Count == 0) 484ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(startIndex, items.Count); 491for (int index = (startIndex + 1) % items.Count; numberOfTimesThroughLoop < items.Count; index = (index + 1) % items.Count)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
281object[] values = new object[listValue.Count];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.MultiMergeCollection.cs (3)
61if (_items is null || _items.Length != collection.Count) 67object?[] newItems = new object?[collection.Count]; 89_items = new object[collection.Count];
System\Windows\Forms\DataBinding\BindingManagerBase.cs (2)
121if (dataSources[offset - 1] is IList list && list.Count > 0) 157if (list is not null && list.Count > 0)
System\Windows\Forms\DataBinding\BindingSource.cs (4)
1444return List.Count; 1465if (_dataSource is null && List.Count == 0) 1589int oldCount = List.Count; 1618if (List.Count > oldCount)
System\Windows\Forms\DataBinding\CurrencyManager.cs (31)
127public override int Count => _list is null ? 0 : _list.Count; 171if (_list.Count > 0) 234int count = _list.Count; 256if (index < 0 || index >= _list.Count) 265if (index < 0 || index >= _list.Count) 287_list.Count - 1, 288validating: (Position != _list.Count - 1), 289endCurrentEdit: (Position != _list.Count - 1), 301object? item = (Position >= 0 && Position < _list.Count) ? _list[Position] : null; 328if (newPosition == -1 && _list.Count == 0) 391if (_dataSource is null || _list is null || _list.Count == 0) 474object? item = (Position >= 0 && Position < _list.Count) ? _list[Position] : null; 491int rowCount = _list.Count; 566for (int i = 0; i < _list.Count; i++) 643if (_list.Count == 0) 684if (listposition == -1 && _list.Count > 0) 690ChangeRecordState(Math.Min(listposition, _list.Count - 1), true, false, true, false); 697if (dbe.NewIndex <= listposition && listposition < _list.Count - 1) 701ChangeRecordState(listposition + 1, true, true, listposition != _list.Count - 2, false); 707if (listposition == _list.Count - 1) 714else if (dbe.NewIndex == listposition && listposition == _list.Count - 1 && listposition != -1) 776ChangeRecordState(dbe.NewIndex, true, Position > -1 && Position < _list.Count, true, false); 782ChangeRecordState(dbe.OldIndex, true, Position > -1 && Position < _list.Count, true, false); 795if (listposition == -1 && _list.Count > 0) 799else if (listposition > _list.Count - 1) 801ChangeRecordState(_list.Count - 1, true, false, true, false); 939if (_list.Count > 0) 941if (listposition >= _list.Count) 972listposition = (_list is not null && _list.Count != 0) ? 0 : -1; 1012bool newBound = _list is not null && _list.Count > 0 && ShouldBind && listposition != -1; 1052if (e.NewIndex <= _lastGoodKnownRow && _lastGoodKnownRow < List.Count - 1)
System\Windows\Forms\DataBinding\ListBindingHelper.cs (1)
660instance = (list.Count > 0) ? list[0] : null;
System\Windows\Forms\Layout\DefaultLayout.cs (1)
1044while (dictionary.Count > 0)
System.Windows.Forms.Design (59)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
150if (instances.Count == 1) 1134Debug.Assert(collection.Count > 0, "We should only be wrapped if there is a selection");
System\ComponentModel\Design\CollectionEditor.cs (1)
335object[] values = new object[collection.Count];
System\ComponentModel\Design\ComponentDesigner.cs (4)
196if (comps is not null && comps.Count > 0 && TryGetService(out IDesignerHost? host)) 198IDesigner[] designers = new IDesigner[comps.Count]; 633EventDescriptor?[] values = new EventDescriptor[events.Values.Count]; 661PropertyDescriptor[] values = new PropertyDescriptor[properties.Values.Count];
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
365eventMethods = new string[methods.Count];
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (2)
39if (propertyDescriptor.GetValue(component) is ICollection { Count: > 0 } collection) 255OriginalValue = new object[collection.Count];
System\ComponentModel\Design\SelectionService.cs (1)
388if (fPrimary && components.Count == 1)
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (4)
321if (errors is not null && errors.Count > 0) 628successful = successful && (errors is null || errors.Count == 0) 630|| _serializationManager.Errors.Count == 0); 689if (_state[s_stateModifyIfErrors] && errors is not null && errors.Count > 0)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (1)
77object[] errors = new object[_errors.Count];
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
1937CodeExpression[] arguments = new CodeExpression[descriptor.Arguments.Count]; 2811statements = new OrderedCodeStatementCollection(table.Count, name);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (7)
35if (original is null || modified is null || original.Count == 0) 65for (int i = 0; i < modified.Count && modifiedEnum.MoveNext(); i++) 195if (collection.Count > 0 && (result is null || (resultCollection is not null && resultCollection.Count == 0))) 320else if (valuesToSerialize.Count > 0) 480if (valuesToSerialize.Count == 0) 561if (valuesToSerialize.Count == 0) 566List<CodeExpression> arrayList = new(valuesToSerialize.Count);
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (2)
222if (arguments is not null && arguments.Count > 0) 224argArray = new object?[arguments.Count];
System\Drawing\Design\ToolboxItem.cs (1)
709List<string> propertyNames = new(Properties.Count);
System\Windows\Forms\Design\CommandSet.cs (15)
482IComponent[] comps = new IComponent[selectedComponents.Count]; 990trans = host?.CreateTransaction(string.Format(SR.CommandSetAlignByPrimary, comps.Count)); 1138trans = host.CreateTransaction(string.Format(SR.CommandSetAlignToGrid, selectedComponents.Count)); 1262? string.Format(SR.WindowsFormsCommandCenterX, selectedComponents.Count) 1263: string.Format(SR.WindowsFormsCommandCenterY, selectedComponents.Count); 1446int cutCount = selectedComponents.Count; 1480object[] selComps = new object[selectedComponents.Count]; 1596string desc = string.Format(SR.CommandSetDelete, comps.Count); 1897if (components is not null && components.Count > 0) 1900object[] allComponents = new object[components.Count]; 2289IComponent[] selectedObjects = new IComponent[sel.Count]; 2390IComponent[] selectedObjects = new IComponent[sel.Count]; 2531IComponent[] selectedObjects = new IComponent[sel.Count]; 3156object[] newObjects = new object[objects.Count + 1]; 3158List<string?> names = new(objects.Count);
System\Windows\Forms\Design\ComponentTray.cs (1)
2940if (comps is not null && comps.Count > 0)
System\Windows\Forms\Design\ControlCommandSet.cs (2)
297HashSet<Control> itemHash = new(sel.Count); 993object[] selectedComponents = new object[sel.Count];
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionCodeDomSerializer.cs (1)
25if (valuesToSerialize is not null && valuesToSerialize.Count > 0)
System\Windows\Forms\Design\DesignerUtils.cs (2)
702if (types is null || types.Count == 0) 708List<Type> final = new(types.Count);
System\Windows\Forms\Design\ListAdapter.cs (1)
26int ICollection<T>.Count => _list.Count;
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (2)
112object[] comps = new object[selectedComponents.Count]; 241_components = new object[objects.Count];
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
104if (objects.Count > 0)
System\Windows\Forms\Design\SelectionUIService.cs (2)
397Dictionary<object, SelectionUIItem> newSelection = new(selection.Count); 973object[] objects = new object[col.Count];
System\Windows\Forms\Design\TableLayoutControlCollectionCodeDomSerializer.cs (1)
28if (valuesToSerialize.Count > 0)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2228if (valuesToSerialize is not null && valuesToSerialize.Count > 0)
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
1054for (int i = 0; i < List.Count; i++)
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
260List<Type> creatableTypes = new(itemTypes.Count);
System.Windows.Forms.Design.Tests (27)
ButtonBaseDesignerTests.cs (1)
52buttonBaseDesigner.SnapLines.Count.Should().Be(9);
ControlDesignerTests.cs (6)
56controlDesigner.AssociatedComponents.Count.Should().Be(0); 59controlDesigner.SnapLines.Count.Should().Be(8); 201_designer.AssociatedComponents.Count.Should().Be(0); 205_designer.AssociatedComponents.Count.Should().Be(0); 214_designer.AssociatedComponents.Count.Should().Be(0); 220_designer.AssociatedComponents.Count.Should().Be(1);
System\Windows\Forms\Design\Behavior\SnapLineTests.cs (10)
249baseDesigner.SnapLines.Count.Should().Be(8); 254derivedDesigner.SnapLines.Count.Should().Be(9); 259derivedDesigner.SnapLines.Count.Should().Be(9); 264derivedDesigner.SnapLines.Count.Should().Be(9); 269derivedDesigner.SnapLines.Count.Should().Be(9); 273derivedDesigner.SnapLines.Count.Should().Be(12); 279derivedDesigner.SnapLines.Count.Should().Be(4); 284derivedDesigner.SnapLines.Count.Should().Be(9); 289derivedDesigner.SnapLines.Count.Should().Be(4); 294derivedDesigner.SnapLines.Count.Should().Be(9);
System\Windows\Forms\Design\ComboBoxDesignerTests.cs (1)
27comboBoxDesigner.SnapLines.Count.Should().Be(9);
System\Windows\Forms\Design\DateTimePickerDesignerTests.cs (1)
25dateTimePickerDesigner.SnapLines.Count.Should().Be(9);
System\Windows\Forms\Design\LabelDesignerTests.cs (1)
25labelDesigner.SnapLines.Count.Should().Be(9);
System\Windows\Forms\Design\ListViewDesignerTests.cs (1)
33_listViewDesigner.AssociatedComponents.Count.Should().Be(2);
System\Windows\Forms\Design\MaskedTextBoxDesignerTests.cs (1)
28public void SnapLines_WithDefaultMaskedTextBox_ShouldReturnExpectedCount() => _maskedTextBoxDesigner.SnapLines.Count.Should().Be(9);
System\Windows\Forms\Design\RadioButtonDesignerTests.cs (1)
27radioButtonDesigner.SnapLines.Count.Should().Be(9);
System\Windows\Forms\Design\RichTextBoxDesignerTests.cs (1)
40_designer.SnapLines.Count.Should().Be(9);
System\Windows\Forms\Design\SplitterPanelDesignerTests.cs (1)
56snapLines.Count.Should().BeGreaterThan(0);
ToolStripDesignerTests.cs (1)
49Assert.Equal(2, toolStripDesigner.AssociatedComponents.Count);
ToolStripDropDownDesignerTest.cs (1)
44Assert.Equal(2, toolStripDropDownDesigner.AssociatedComponents.Count);
System.Windows.Forms.Tests (119)
System\Windows\Forms\AutoCompleteStringCollectionTests.cs (1)
177Assert.Equal(2, collection.Count);
System\Windows\Forms\BindingContextTests.cs (12)
55Assert.Equal(2, ((ICollection)context).Count); 98Assert.Equal(2, ((ICollection)context).Count); 143Assert.Equal(2, ((ICollection)context).Count); 528Assert.Equal(expectedCount, ((ICollection)context).Count); 586Assert.Equal(2, ((ICollection)context).Count); 604Assert.Equal(2, ((ICollection)context).Count); 623Assert.Equal(2, ((ICollection)context).Count); 645Assert.Equal(2, ((ICollection)context).Count); 665Assert.Equal(2, ((ICollection)context).Count); 706Assert.Equal(2, ((ICollection)context).Count); 840Assert.Equal(2, ((ICollection)context).Count); 859Assert.Equal(2, ((ICollection)context).Count);
System\Windows\Forms\BindingSourceTests.cs (4)
148Assert.Equal(expected.Count, source.CurrencyManager.Count); 234Assert.Equal(expected.Count, source.CurrencyManager.Count); 304Assert.Equal(expected.Count, source.CurrencyManager.Count); 349.Setup(p => p.Count)
System\Windows\Forms\ColumnHeaderCollectionTests.cs (1)
844Assert.Equal(2, collection.Count);
System\Windows\Forms\DataGridViewSelectedCellCollectionTests.cs (1)
210Assert.Equal(2, iList.Count);
System\Windows\Forms\DataGridViewSelectedColumnCollectionTests.cs (1)
234Assert.Equal(2, iList.Count);
System\Windows\Forms\DataGridViewSelectedRowCollectionTests.cs (1)
204Assert.Equal(2, iList.Count);
System\Windows\Forms\KeysConverterTests.cs (1)
115Assert.Equal(expectedValues.Length, standardValuesCollection.Count);
System\Windows\Forms\ListBox.IntegerCollectionTests.cs (20)
1768Assert.Equal(2, collection.Count); 1775Assert.Equal(2, collection.Count); 1782Assert.Equal(3, collection.Count); 1811Assert.Equal(2, collection.Count); 1818Assert.Equal(2, collection.Count); 1825Assert.Equal(3, collection.Count); 1864Assert.Equal(2, collection.Count); 1874Assert.Equal(2, collection.Count); 1884Assert.Equal(3, collection.Count); 1926Assert.Equal(2, collection.Count); 1936Assert.Equal(2, collection.Count); 1946Assert.Equal(3, collection.Count); 2347Assert.Equal(2, collection.Count); 2394Assert.Equal(2, collection.Count); 2450Assert.Equal(2, collection.Count); 2516Assert.Equal(2, collection.Count); 2587Assert.Equal(2, collection.Count); 2627Assert.Equal(2, collection.Count); 2676Assert.Equal(2, collection.Count); 2732Assert.Equal(2, collection.Count);
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (72)
8121Assert.Equal(2, collection.Count); 8129Assert.Equal(3, collection.Count); 8137Assert.Equal(4, collection.Count); 8162Assert.Equal(2, collection.Count); 8170Assert.Equal(3, collection.Count); 8178Assert.Equal(4, collection.Count); 8206Assert.Equal(2, collection.Count); 8214Assert.Equal(3, collection.Count); 8222Assert.Equal(4, collection.Count); 8250Assert.Equal(2, collection.Count); 8258Assert.Equal(3, collection.Count); 8266Assert.Equal(4, collection.Count); 8302Assert.Equal(2, collection.Count); 8317Assert.Equal(3, collection.Count); 8334Assert.Equal(4, collection.Count); 8381Assert.Equal(2, collection.Count); 8396Assert.Equal(3, collection.Count); 8413Assert.Equal(4, collection.Count); 8463Assert.Equal(2, collection.Count); 8478Assert.Equal(3, collection.Count); 8495Assert.Equal(4, collection.Count); 8545Assert.Equal(2, collection.Count); 8560Assert.Equal(3, collection.Count); 8577Assert.Equal(4, collection.Count); 9461Assert.Equal(2, collection.Count); 9469Assert.Equal(3, collection.Count); 9477Assert.Equal(4, collection.Count); 9502Assert.Equal(2, collection.Count); 9510Assert.Equal(3, collection.Count); 9518Assert.Equal(4, collection.Count); 9546Assert.Equal(2, collection.Count); 9554Assert.Equal(3, collection.Count); 9562Assert.Equal(4, collection.Count); 9590Assert.Equal(2, collection.Count); 9598Assert.Equal(3, collection.Count); 9606Assert.Equal(4, collection.Count); 9642Assert.Equal(2, collection.Count); 9657Assert.Equal(3, collection.Count); 9674Assert.Equal(4, collection.Count); 9721Assert.Equal(2, collection.Count); 9736Assert.Equal(3, collection.Count); 9753Assert.Equal(4, collection.Count); 9803Assert.Equal(2, collection.Count); 9818Assert.Equal(3, collection.Count); 9835Assert.Equal(4, collection.Count); 9885Assert.Equal(2, collection.Count); 9900Assert.Equal(3, collection.Count); 9917Assert.Equal(4, collection.Count); 10392Assert.Equal(2, collection.Count); 10400Assert.Equal(2, collection.Count); 10436Assert.Equal(2, collection.Count); 10443Assert.Equal(2, collection.Count); 10482Assert.Equal(2, collection.Count); 10490Assert.Equal(2, collection.Count); 10529Assert.Equal(2, collection.Count); 10536Assert.Equal(2, collection.Count); 10576Assert.Equal(2, collection.Count); 10591Assert.Equal(2, collection.Count); 10650Assert.Equal(2, collection.Count); 10666Assert.Equal(2, collection.Count); 10728Assert.Equal(2, collection.Count); 10743Assert.Equal(2, collection.Count); 10805Assert.Equal(2, collection.Count); 10821Assert.Equal(2, collection.Count); 11339Assert.Equal(2, collection.Count); 11375Assert.Equal(2, collection.Count); 11414Assert.Equal(2, collection.Count); 11453Assert.Equal(2, collection.Count); 11493Assert.Equal(2, collection.Count); 11552Assert.Equal(2, collection.Count); 11614Assert.Equal(2, collection.Count); 11676Assert.Equal(2, collection.Count);
System\Windows\Forms\ListViewGroupCollectionTests.cs (1)
887Assert.Equal(2, collection.Count);
System\Windows\Forms\ListViewSubItemCollectionTests.cs (1)
675Assert.Equal(2, collection.Count);
System\Windows\Forms\TreeNodeConverterTests.cs (3)
70args.Count.Should().Be(1); 87args.Count.Should().Be(2); 114args.Count.Should().Be(4);
System.Xaml (10)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\FrugalList.cs (2)
1296_count = collection.Count; 1972int count = collection.Count;
System\Xaml\NameScope.cs (2)
229var list = new List<string>(_nameMap.Keys.Count); 248var list = new List<object>(_nameMap.Values.Count);
System\Xaml\XamlObjectReader.cs (6)
1258if (arguments is not null && arguments.Count > 0) 1272if (arguments.Count != methodParams.Length) 1302if (arguments is not null && arguments.Count > 0) 1325if (arguments is not null && arguments.Count > 0) 1676if (constructorArguments.Count == ctorArgProps.Count) 1685if (constructorArguments.Count == properties.Count)
Test.Utilities (4)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
57return collection.Count == count; 94return collection.Count > count; 131return collection.Count < count;
Text.Analyzers (4)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
208return collection.Count == 0;
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (3)
57return collection.Count == count; 94return collection.Count > count; 131return collection.Count < count;
xunit.assert (2)
Sdk\CollectionTracker.cs (2)
198 if (dictionaryX.Count != dictionaryY.Count)