Implemented interface members:
53 references to Count
Microsoft.CodeAnalysis (36)
ImmutableSegmentedHashSet`1.cs (2)
29
public int Count => _set.
Count
;
34
public bool IsEmpty => _set.
Count
== 0;
ImmutableSegmentedHashSet`1+Builder.cs (2)
53
public int Count => ReadOnlySet.
Count
;
85
if (ReadOnlySet.
Count
!= 0)
SegmentedHashSet`1.cs (30)
137
if (source.
Count
== 0)
146
var threshold = HashHelpers.ExpandPrime(source.
Count
+ 1);
159
Initialize(source.
Count
);
172
Debug.Assert(
Count
== source.
Count
);
433
if (
Count
== 0 || other == this)
469
if (
Count
== 0)
498
if (
Count
== 0)
538
if (
Count
== 0 || other == this)
548
if (
Count
> otherAsSet.
Count
)
559
return uniqueCount ==
Count
&& unfoundCount >= 0;
587
if (
Count
== 0)
595
if (
Count
>= otherAsSet.
Count
)
607
return uniqueCount ==
Count
&& unfoundCount > 0;
638
otherAsSet.
Count
>
Count
)
658
if (
Count
== 0 || other == this)
675
if (otherAsSet.
Count
>=
Count
)
687
return uniqueCount <
Count
&& unfoundCount == 0;
700
if (
Count
== 0)
743
if (
Count
!= otherAsSet.
Count
)
755
if (
Count
== 0 &&
763
return uniqueCount ==
Count
&& unfoundCount == 0;
767
public void CopyTo(T[] array) => CopyTo(array, 0,
Count
);
772
public void CopyTo(T[] array, int arrayIndex) => CopyTo(array, arrayIndex,
Count
);
912
var capacity =
Count
;
SegmentedHashSetEqualityComparer`1.cs (2)
38
return x.
Count
== y.
Count
&& y.IsSubsetOfHashSetWithSameComparer(x);
Microsoft.CodeAnalysis.UnitTests (17)
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (13)
155
Assert.Equal(setLength, set.
Count
);
233
Assert.Equal(0, set.
Count
);
237
Assert.Equal(setLength / 10, set.
Count
);
251
Assert.Equal(0, set.
Count
);
255
Assert.Equal(setLength, set.
Count
);
366
Assert.Equal(0, set.
Count
);
376
Assert.Equal(capacity, set.
Count
);
379
Assert.Equal(capacity + 1, set.
Count
);
407
Assert.Equal(0, set.
Count
);
422
Assert.Equal(capacity, set.
Count
);
425
Assert.Equal(capacity + 1, set.
Count
);
659
Assert.Equal(capacity, set.
Count
);
661
Assert.Equal(capacity - 1, set.
Count
);
Collections\HashSet\SegmentedHashSet_IEnumerable_NonGeneric_Tests.cs (2)
24
while (set.
Count
< count)
45
if (casted.
Count
> 0)
Collections\List\TestBase.Generic.cs (2)
240
while (set.
Count
< count)
249
Debug.Assert(set.
Count
== count);