6 writes to m_slots
System.Core (6)
System\Collections\Generic\HashSet.cs (6)
172
m_slots
= (Slot[])source.m_slots.Clone();
403
m_slots
= new Slot[capacity];
921
m_slots
= null;
952
m_slots
= newSlots;
983
m_slots
= new Slot[size];
1034
m_slots
= newSlots;
55 references to m_slots
System.Core (55)
System\Collections\Generic\HashSet.cs (55)
150
if (m_count > 0 &&
m_slots
.Length / m_count > ShrinkThreshold) {
172
m_slots = (Slot[])source.
m_slots
.Clone();
179
Slot[] slots = source.
m_slots
;
245
Array.Clear(
m_slots
, 0, m_lastIndex);
263
for (int i = m_buckets[hashCode % m_buckets.Length] - 1; i >= 0; i =
m_slots
[i].next) {
264
if (
m_slots
[i].hashCode == hashCode && m_comparer.Equals(
m_slots
[i].value, item)) {
292
for (int i = m_buckets[bucket] - 1; i >= 0; last = i, i =
m_slots
[i].next) {
293
if (
m_slots
[i].hashCode == hashCode && m_comparer.Equals(
m_slots
[i].value, item)) {
296
m_buckets[bucket] =
m_slots
[i].next + 1;
300
m_slots
[last].next =
m_slots
[i].next;
302
m_slots
[i].hashCode = -1;
303
m_slots
[i].value = default(T);
304
m_slots
[i].next = m_freeList;
455
actualValue =
m_slots
[i].value;
860
if (
m_slots
[i].hashCode >= 0) {
861
array[arrayIndex + numCopied] =
m_slots
[i].value;
880
if (
m_slots
[i].hashCode >= 0) {
882
T value =
m_slots
[i].value;
937
if (
m_slots
[i].hashCode >= 0) {
938
newSlots[newIndex] =
m_slots
[i];
949
Debug.Assert(newSlots.Length <=
m_slots
.Length, "capacity increased after TrimExcess");
1016
if (
m_slots
!= null) {
1017
Array.Copy(
m_slots
, 0, newSlots, 0, m_lastIndex);
1054
for (int i = m_buckets[hashCode % m_buckets.Length] - 1; i >= 0; i =
m_slots
[i].next) {
1055
if (
m_slots
[i].hashCode == hashCode && m_comparer.Equals(
m_slots
[i].value, value)) {
1066
m_freeList =
m_slots
[index].next;
1069
if (m_lastIndex ==
m_slots
.Length) {
1077
m_slots
[index].hashCode = hashCode;
1078
m_slots
[index].value = value;
1079
m_slots
[index].next = m_buckets[bucket] - 1;
1107
m_slots
[index].hashCode = hashCode;
1108
m_slots
[index].value = value;
1109
m_slots
[index].next = m_buckets[bucket] - 1;
1159
if (
m_slots
[i].hashCode >= 0) {
1160
T item =
m_slots
[i].value;
1205
if (
m_slots
[i].hashCode >= 0 && !bitHelper.IsMarked(i)) {
1206
Remove(
m_slots
[i].value);
1221
for (int i = m_buckets[hashCode % m_buckets.Length] - 1; i >= 0; i =
m_slots
[i].next) {
1222
if ((
m_slots
[i].hashCode) == hashCode && m_comparer.Equals(
m_slots
[i].value, item)) {
1310
Remove(
m_slots
[i].value);
1330
for (int i = m_buckets[hashCode % m_buckets.Length] - 1; i >= 0; i =
m_slots
[i].next) {
1331
if (
m_slots
[i].hashCode == hashCode && m_comparer.Equals(
m_slots
[i].value, value)) {
1339
m_freeList =
m_slots
[index].next;
1342
if (m_lastIndex ==
m_slots
.Length) {
1350
m_slots
[index].hashCode = hashCode;
1351
m_slots
[index].value = value;
1352
m_slots
[index].next = m_buckets[bucket] - 1;
1569
if (set.
m_slots
[index].hashCode >= 0) {
1570
current = set.
m_slots
[index].value;