Skip to content

Conversation

@milokout
Copy link
Contributor

@milokout milokout commented Dec 9, 2022

Prevent removal of items that were added during enumeration.

I think the same behaviour as in TryGet should also be here.

Just using a simplified invocation via TryRemove which uses the same TryRemoveInternal with matchValue: true as the ICollection.Remove (at least in .NET 6)

image

Prevent removal of items that were added during enumeration
@alex-jitbit alex-jitbit merged commit 5b3fb56 into jitbit:main Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants