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

Added failing test when declaring multiple IConverter<,> in a single class #8880

Closed
wants to merge 2 commits into from

Conversation

ccorsano
Copy link
Contributor

@ccorsano ccorsano commented Feb 25, 2024

See #8879

This is the failing test demonstrating the issue.

Microsoft Reviewers: Open in CodeFlow

@ccorsano
Copy link
Contributor Author

@dotnet-policy-service agree

- When declaring a single converter class for multiple surrogates,
  ICopier will always resolve the last declared IConverter<,> interface,
  failing with a InvalidCastException at runtime
- Added Equals and GetHashCode to foreign types
@ReubenBond ReubenBond force-pushed the mutliple_surrogate_unit_test branch from f0d0903 to ce57581 Compare July 8, 2024 20:14
@ReubenBond
Copy link
Member

Superseded by #8881. Thanks again for the fix, @ccorsano!

@ReubenBond ReubenBond closed this Jul 10, 2024
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.

None yet

2 participants