Implemented interface members:
56 references to Count
Microsoft.CodeAnalysis (38)
Collections\CachingDictionary.cs (1)
222
var fullyPopulatedMap = CreateDictionaryForFullyPopulatedMap(capacity: allKeys.
Count
);
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (2)
41
return x.
Count
== y.
Count
&& y.IsSubsetOfHashSetWithSameComparer(x);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (2)
82
public int Count => _set.
Count
;
87
public bool IsEmpty => _set.
Count
== 0;
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (2)
56
public readonly int Count => ReadOnlySet.
Count
;
88
if (ReadOnlySet.
Count
!= 0)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (31)
154
if (source.
Count
== 0)
163
var threshold = HashHelpers.ExpandPrime(source.
Count
+ 1);
176
Initialize(source.
Count
);
189
Debug.Assert(
Count
== source.
Count
);
369
Count
== 0 ? GetEmptyEnumerator() :
440
if (
Count
== 0 || other == this)
476
if (
Count
== 0)
505
if (
Count
== 0)
545
if (
Count
== 0 || other == this)
555
if (
Count
> otherAsSet.
Count
)
566
return uniqueCount ==
Count
&& unfoundCount >= 0;
594
if (
Count
== 0)
602
if (
Count
>= otherAsSet.
Count
)
614
return uniqueCount ==
Count
&& unfoundCount > 0;
645
otherAsSet.
Count
>
Count
)
673
if (
Count
== 0 || other == this)
690
if (otherAsSet.
Count
>=
Count
)
702
return uniqueCount <
Count
&& unfoundCount == 0;
715
if (
Count
== 0)
758
if (
Count
!= otherAsSet.
Count
)
770
if (
Count
== 0 &&
778
return uniqueCount ==
Count
&& unfoundCount == 0;
782
public void CopyTo(T[] array) => CopyTo(array, 0,
Count
);
787
public void CopyTo(T[] array, int arrayIndex) => CopyTo(array, arrayIndex,
Count
);
954
var capacity =
Count
;
Microsoft.CodeAnalysis.UnitTests (18)
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (13)
157
Assert.Equal(setLength, set.
Count
);
235
Assert.Equal(0, set.
Count
);
239
Assert.Equal(setLength / 10, set.
Count
);
253
Assert.Equal(0, set.
Count
);
257
Assert.Equal(setLength, set.
Count
);
368
Assert.Equal(0, set.
Count
);
378
Assert.Equal(capacity, set.
Count
);
381
Assert.Equal(capacity + 1, set.
Count
);
409
Assert.Equal(0, set.
Count
);
424
Assert.Equal(capacity, set.
Count
);
427
Assert.Equal(capacity + 1, set.
Count
);
661
Assert.Equal(capacity, set.
Count
);
663
Assert.Equal(capacity - 1, set.
Count
);
Collections\HashSet\SegmentedHashSet_IEnumerable_NonGeneric_Tests.cs (2)
24
while (set.
Count
< count)
46
if (casted.
Count
> 0)
Collections\List\TestBase.Generic.cs (2)
247
while (set.
Count
< count)
256
Debug.Assert(set.
Count
== count);
Collections\SegmentedCollectionsMarshalTests.cs (1)
641
Assert.Equal(17, set.
Count
);