_count = 0;
_freeList = -1;
_freeCount = 0;
- _version++;
Array.Clear(_entries, 0, count);
}
+ _version++;
}
public bool ContainsKey(TKey key)
ThrowHelper.ThrowArgumentNullException(ExceptionArgument.key);
}
+ _version++;
if (_buckets == null)
{
Initialize(0);
if (behavior == InsertionBehavior.OverwriteExisting)
{
entries[i].value = value;
- _version++;
return true;
}
if (behavior == InsertionBehavior.OverwriteExisting)
{
entries[i].value = value;
- _version++;
return true;
}
entry.value = value;
// Value in _buckets is 1-based
targetBucket = index + 1;
- _version++;
// Value types never rehash
if (default(TKey) == null && collisionCount > HashHelpers.HashCollisionThreshold && comparer is NonRandomizedStringEqualityComparer)