mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-12 21:34:11 +02:00
Update Enumerator version when removing key
This commit is contained in:
parent
709997feb1
commit
ce894beaa9
1 changed files with 9 additions and 0 deletions
|
@ -868,6 +868,9 @@ namespace System.Collections
|
||||||
{
|
{
|
||||||
int_cosize curIdx = mIndex - 1;
|
int_cosize curIdx = mIndex - 1;
|
||||||
mDictionary.Remove(mDictionary.mEntries[curIdx].mKey);
|
mDictionary.Remove(mDictionary.mEntries[curIdx].mKey);
|
||||||
|
#if VERSION_DICTIONARY
|
||||||
|
mVersion = mDictionary.mVersion;
|
||||||
|
#endif
|
||||||
mIndex = curIdx;
|
mIndex = curIdx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1016,6 +1019,9 @@ namespace System.Collections
|
||||||
{
|
{
|
||||||
int_cosize curIdx = mIndex - 1;
|
int_cosize curIdx = mIndex - 1;
|
||||||
mDictionary.Remove(mDictionary.mEntries[curIdx].mKey);
|
mDictionary.Remove(mDictionary.mEntries[curIdx].mKey);
|
||||||
|
#if VERSION_DICTIONARY
|
||||||
|
mVersion = mDictionary.mVersion;
|
||||||
|
#endif
|
||||||
mIndex = curIdx;
|
mIndex = curIdx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1119,6 +1125,9 @@ namespace System.Collections
|
||||||
{
|
{
|
||||||
int_cosize curIdx = mIndex - 1;
|
int_cosize curIdx = mIndex - 1;
|
||||||
mDictionary.Remove(mDictionary.mEntries[curIdx].mKey);
|
mDictionary.Remove(mDictionary.mEntries[curIdx].mKey);
|
||||||
|
#if VERSION_DICTIONARY
|
||||||
|
mVersion = mDictionary.mVersion;
|
||||||
|
#endif
|
||||||
mIndex = curIdx;
|
mIndex = curIdx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue