Skip to content

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

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

Fixed dynamic Cache .Filter() for older framework targets#1084
JakenVeina merged 1 commit into
mainfrom
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

@dwcullop dwcullop left a comment

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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