mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Add Remove method to Dictionary Enumerators
This commit is contained in:
parent
4189d10f41
commit
709997feb1
1 changed files with 21 additions and 0 deletions
|
@ -864,6 +864,13 @@ namespace System.Collections
|
|||
mDictionary.mEntries[mCurrentIndex].mValue = value;
|
||||
}
|
||||
|
||||
public void Remove() mut
|
||||
{
|
||||
int_cosize curIdx = mIndex - 1;
|
||||
mDictionary.Remove(mDictionary.mEntries[curIdx].mKey);
|
||||
mIndex = curIdx;
|
||||
}
|
||||
|
||||
public void Reset() mut
|
||||
{
|
||||
#if VERSION_DICTIONARY
|
||||
|
@ -1005,6 +1012,13 @@ namespace System.Collections
|
|||
{
|
||||
}
|
||||
|
||||
public void Remove() mut
|
||||
{
|
||||
int_cosize curIdx = mIndex - 1;
|
||||
mDictionary.Remove(mDictionary.mEntries[curIdx].mKey);
|
||||
mIndex = curIdx;
|
||||
}
|
||||
|
||||
public void Reset() mut
|
||||
{
|
||||
#if VERSION_DICTIONARY
|
||||
|
@ -1101,6 +1115,13 @@ namespace System.Collections
|
|||
{
|
||||
}
|
||||
|
||||
public void Remove() mut
|
||||
{
|
||||
int_cosize curIdx = mIndex - 1;
|
||||
mDictionary.Remove(mDictionary.mEntries[curIdx].mKey);
|
||||
mIndex = curIdx;
|
||||
}
|
||||
|
||||
public void Reset() mut
|
||||
{
|
||||
#if VERSION_DICTIONARY
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue