2 writes to slots
System.Core (2)
System\Linq\Parallel\Utils\HashLookup.cs (2)
40
slots
= new Slot[7];
170
slots
= newSlots;
24 references to slots
System.Core (24)
System\Linq\Parallel\Utils\HashLookup.cs (24)
87
for (int i = buckets[bucket] - 1; i >= 0; last = i, i =
slots
[i].next)
89
if (
slots
[i].hashCode == hashCode && AreKeysEqual(
slots
[i].key, key))
93
buckets[bucket] =
slots
[i].next + 1;
97
slots
[last].next =
slots
[i].next;
99
slots
[i].hashCode = -1;
100
slots
[i].key = default(TKey);
101
slots
[i].value = default(TValue);
102
slots
[i].next = freeList;
114
for (int i = buckets[hashCode % buckets.Length] - 1; i >= 0; i =
slots
[i].next)
116
if (
slots
[i].hashCode == hashCode && AreKeysEqual(
slots
[i].key, key))
120
slots
[i].value = value;
125
value =
slots
[i].value;
137
freeList =
slots
[index].next;
141
if (count ==
slots
.Length) Resize();
147
slots
[index].hashCode = hashCode;
148
slots
[index].key = key;
149
slots
[index].value = value;
150
slots
[index].next = buckets[bucket] - 1;
162
Array.Copy(
slots
, 0, newSlots, 0, count);
180
get { return new KeyValuePair<TKey, TValue>(
slots
[index].key,
slots
[index].value); }