diff --git a/BeefLibs/corlib/src/Collections/Dictionary.bf b/BeefLibs/corlib/src/Collections/Dictionary.bf index 2bd9cc1f..d308fcb4 100644 --- a/BeefLibs/corlib/src/Collections/Dictionary.bf +++ b/BeefLibs/corlib/src/Collections/Dictionary.bf @@ -864,6 +864,16 @@ namespace System.Collections 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 { #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 { #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 { #if VERSION_DICTIONARY