Implemented interface members:
37 references to Count
Microsoft.CodeAnalysis.Threading.Package (37)
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
;