Skip to content

Fixed dynamic Cache .Filter() for older framework targets#1084

Merged
JakenVeina merged 1 commit intomainfrom
issues/1083
May 10, 2026
Merged

Fixed dynamic Cache .Filter() for older framework targets#1084
JakenVeina merged 1 commit intomainfrom
issues/1083

Conversation

@JakenVeina
Copy link
Copy Markdown
Collaborator

Fixed that the cache-land dynamic .Filter() operator relied on limited mutation of an internal Dictionary<,> during enumeration, a behavior that is not supported on target frameworks older than .NET Core 3.0. Additional logic to copy the keys to iterate, before mutation, should now be injected for builds targeting such older frameworks.

Resolves #1083.

…ted mutation of an internal `Dictionary<,>` during enumeration, a behavior that is not supported on target frameworks older than .NET Core 3.0. Additional logic to copy the keys to iterate, before mutation, should now be injected for builds targeting such older frameworks.
@JakenVeina JakenVeina changed the title Fixed mutation during enumeration for older targets that don't support it. Fixed dynamic Cache .Filter() for older framework targets May 4, 2026
Copy link
Copy Markdown
Member

@dwcullop dwcullop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me.

@JakenVeina
Copy link
Copy Markdown
Collaborator Author

It took some doing, but I WAS able to setup a VM and confirm it fails on .NET Framework 4.8 before the fix, and works after the fix.

@JakenVeina JakenVeina merged commit 7b861d0 into main May 10, 2026
1 check passed
@JakenVeina JakenVeina deleted the issues/1083 branch May 10, 2026 02:35
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.

[Bug]: Cache dynamic Filter throws InvalidOperationException during ReFilter

2 participants