mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Merge pull request #1083 from disarray2077/dict_enumerator_remove
Add Remove method to Dictionary Enumerators
This commit is contained in:
commit
bcdf652b99
1 changed files with 30 additions and 0 deletions
|
@ -864,6 +864,16 @@ namespace System.Collections
|
||||||
mDictionary.mEntries[mCurrentIndex].mValue = value;
|
mDictionary.mEntries[mCurrentIndex].mValue = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Remove() mut
|
||||||
|
{
|
||||||
|
int_cosize curIdx = mIndex - 1;
|
||||||
|
mDictionary.Remove(mDictionary.mEntries[curIdx].mKey);
|
||||||
|
#if VERSION_DICTIONARY
|
||||||
|
mVersion = mDictionary.mVersion;
|
||||||
|
#endif
|
||||||
|
mIndex = curIdx;
|
||||||
|
}
|
||||||
|
|
||||||
public void Reset() mut
|
public void Reset() mut
|
||||||
{
|
{
|
||||||
#if VERSION_DICTIONARY
|
#if VERSION_DICTIONARY
|
||||||
|
@ -1005,6 +1015,16 @@ namespace System.Collections
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Remove() mut
|
||||||
|
{
|
||||||
|
int_cosize curIdx = mIndex - 1;
|
||||||
|
mDictionary.Remove(mDictionary.mEntries[curIdx].mKey);
|
||||||
|
#if VERSION_DICTIONARY
|
||||||
|
mVersion = mDictionary.mVersion;
|
||||||
|
#endif
|
||||||
|
mIndex = curIdx;
|
||||||
|
}
|
||||||
|
|
||||||
public void Reset() mut
|
public void Reset() mut
|
||||||
{
|
{
|
||||||
#if VERSION_DICTIONARY
|
#if VERSION_DICTIONARY
|
||||||
|
@ -1101,6 +1121,16 @@ namespace System.Collections
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Remove() mut
|
||||||
|
{
|
||||||
|
int_cosize curIdx = mIndex - 1;
|
||||||
|
mDictionary.Remove(mDictionary.mEntries[curIdx].mKey);
|
||||||
|
#if VERSION_DICTIONARY
|
||||||
|
mVersion = mDictionary.mVersion;
|
||||||
|
#endif
|
||||||
|
mIndex = curIdx;
|
||||||
|
}
|
||||||
|
|
||||||
public void Reset() mut
|
public void Reset() mut
|
||||||
{
|
{
|
||||||
#if VERSION_DICTIONARY
|
#if VERSION_DICTIONARY
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue