2 writes to slots
System.Data.Linq (2)
IdentityManager.cs (2)
259
slots
= new Slot[7];
353
slots
= newSlots;
20 references to slots
System.Data.Linq (20)
IdentityManager.cs (20)
277
for (int i = buckets[bucket] - 1; i >= 0; last = i, i =
slots
[i].next) {
278
if (
slots
[i].hashCode == hashCode && comparer.Equals(
slots
[i].key, key)) {
280
buckets[bucket] =
slots
[i].next + 1;
283
slots
[last].next =
slots
[i].next;
285
slots
[i].hashCode = -1;
286
slots
[i].value = default(T);
287
slots
[i].next = freeList;
315
for (int i = buckets[hashCode % buckets.Length] - 1; i >= 0; i =
slots
[i].next) {
316
if (
slots
[i].hashCode == hashCode && comparer.Equals(
slots
[i].key, key)) {
317
value =
slots
[i].value;
325
freeList =
slots
[index].next;
328
if (count ==
slots
.Length) Resize();
333
slots
[index].hashCode = hashCode;
334
slots
[index].key = key;
335
slots
[index].value = value;
336
slots
[index].next = buckets[bucket] - 1;
346
Array.Copy(
slots
, 0, newSlots, 0, count);