1
0
Fork 0
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:
disarray2077 2021-06-24 20:04:56 -03:00
parent 4189d10f41
commit 709997feb1

View file

@ -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