Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix dotnet 8 breakage in SlowDictionaryAccessor by getting the enumerator through IDictionary instead of IEnumerable #77

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

TylerReid
Copy link
Contributor

This fixes the issue described in #76

A optimization in dotnet 8 means that we can't assume that the IEnumerable interfaces GetEnumerator will be the same as the version from IDictionary. We know that casting to IDictionary will be safe because this accessor is only used when the object is ReflectionObjectKind.Dictionary

@xoofx xoofx added the bug Something isn't working label Nov 22, 2023
…ator through IDictionary instead of IEnumerable
@xoofx xoofx merged commit d0ef7e1 into xoofx:main Nov 22, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants