Implemented interface members:
37 references to Count
Microsoft.CodeAnalysis.Collections.Package (37)
ImmutableSegmentedHashSet`1.cs (2)
80
public int Count => _set.
Count
;
85
public bool IsEmpty => _set.
Count
== 0;
ImmutableSegmentedHashSet`1+ValueBuilder.cs (2)
54
public readonly int Count => ReadOnlySet.
Count
;
86
if (ReadOnlySet.
Count
!= 0)
Internal\SegmentedHashSetEqualityComparer`1.cs (2)
39
return x.
Count
== y.
Count
&& y.IsSubsetOfHashSetWithSameComparer(x);
SegmentedHashSet`1.cs (31)
152
if (source.
Count
== 0)
161
var threshold = HashHelpers.ExpandPrime(source.
Count
+ 1);
174
Initialize(source.
Count
);
187
Debug.Assert(
Count
== source.
Count
);
367
Count
== 0 ? GetEmptyEnumerator() :
438
if (
Count
== 0 || other == this)
474
if (
Count
== 0)
503
if (
Count
== 0)
543
if (
Count
== 0 || other == this)
553
if (
Count
> otherAsSet.
Count
)
564
return uniqueCount ==
Count
&& unfoundCount >= 0;
592
if (
Count
== 0)
600
if (
Count
>= otherAsSet.
Count
)
612
return uniqueCount ==
Count
&& unfoundCount > 0;
643
otherAsSet.
Count
>
Count
)
671
if (
Count
== 0 || other == this)
688
if (otherAsSet.
Count
>=
Count
)
700
return uniqueCount <
Count
&& unfoundCount == 0;
713
if (
Count
== 0)
756
if (
Count
!= otherAsSet.
Count
)
768
if (
Count
== 0 &&
776
return uniqueCount ==
Count
&& unfoundCount == 0;
780
public void CopyTo(T[] array) => CopyTo(array, 0,
Count
);
785
public void CopyTo(T[] array, int arrayIndex) => CopyTo(array, arrayIndex,
Count
);
952
var capacity =
Count
;