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

Fixed bug in ExtractGenericArgumentDataContextChangeAttribute #1704

Merged
merged 2 commits into from
Sep 29, 2023

Conversation

tomasherceg
Copy link
Member

There was a bug in ExtractGenericArgumentDataContextChange attribute - the method overload with Type wasn't comparing the generic arguments correctly.
Also, when the DataContext was directly the requested type, it didn't match because we inspected only implemented interfaces and base types, but not self.

@exyi exyi added this to the Version 4.2 milestone Sep 29, 2023
Copy link
Member

@exyi exyi left a comment

Choose a reason for hiding this comment

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

👍

@exyi
Copy link
Member

exyi commented Sep 29, 2023

I'd not mind if we had a unit test for this, I think it should be quite easy to just create the attribute, and call the two methods.

@tomasherceg tomasherceg merged commit 8b436f7 into main Sep 29, 2023
14 checks passed
@tomasherceg tomasherceg deleted the fix/extract-generic-data-context-change branch September 29, 2023 16:15
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