Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Better constrain dictionary detection #1687

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

Merged
merged 1 commit into from
Oct 6, 2023
Merged

Better constrain dictionary detection #1687

merged 1 commit into from
Oct 6, 2023

Conversation

AArnott
Copy link
Collaborator

@AArnott AArnott commented Oct 4, 2023

  • Searches for constructors should not match on static constructors
  • It is not enough for a class to implement IDictionary<K, V> to use GenericCollectionFormatter, which has a generic type constraint that requires IReadOnlyDictionary<K, V>.

Fixes #1686

@AArnott AArnott added this to the v2.5 milestone Oct 4, 2023
@AArnott
Copy link
Collaborator Author

AArnott commented Oct 4, 2023

@MrReny I'd appreciate your trying this out to confirm it unblocks you.

@MrReny
Copy link

MrReny commented Oct 6, 2023

@AArnott Sorry for late response. This is indeed fixed my issue. All tests are green, no regression. Thank you.

@AArnott AArnott merged commit 7dcea24 into master Oct 6, 2023
@AArnott AArnott deleted the fix1686 branch October 6, 2023 13:02
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.

Cant serialize custom type derived from IDictionary<,>
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.