2 writes to slots
System.Core (2)
System\Linq\Enumerable.cs (2)
2394
slots
= new Slot[7];
2467
slots
= newSlots;
18 references to slots
System.Core (18)
System\Linq\Enumerable.cs (18)
2413
for (int i = buckets[bucket] - 1; i >= 0; last = i, i =
slots
[i].next) {
2414
if (
slots
[i].hashCode == hashCode && comparer.Equals(
slots
[i].value, value)) {
2416
buckets[bucket] =
slots
[i].next + 1;
2419
slots
[last].next =
slots
[i].next;
2421
slots
[i].hashCode = -1;
2422
slots
[i].value = default(TElement);
2423
slots
[i].next = freeList;
2433
for (int i = buckets[hashCode % buckets.Length] - 1; i >= 0; i =
slots
[i].next) {
2434
if (
slots
[i].hashCode == hashCode && comparer.Equals(
slots
[i].value, value)) return true;
2440
freeList =
slots
[index].next;
2443
if (count ==
slots
.Length) Resize();
2448
slots
[index].hashCode = hashCode;
2449
slots
[index].value = value;
2450
slots
[index].next = buckets[bucket] - 1;
2460
Array.Copy(
slots
, 0, newSlots, 0, count);