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

Add support for object return values in Func callbacks #2053

Merged

Conversation

martinbu
Copy link
Contributor

@martinbu martinbu commented Feb 11, 2025

If a Func defines a none value-type return type that does not implement IConvertible a InvalidCastException was thrown. This update skips Convert.ChangeType if the returned value is not IConvertible and just casts the result.

See #2038

If a Func defines a none value-type return type that does
not implement IConvertible a InvalidCastException was
thrown. This update skips Convert.ChangeType if the returned
value is not IConvertible and just casts the result.
@martinbu martinbu force-pushed the support-func-with-object-return-values branch from f7fe977 to 9ea3a52 Compare February 11, 2025 13:34
Copy link
Collaborator

@lahma lahma left a comment

Choose a reason for hiding this comment

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

Thank you!

@lahma lahma merged commit dd4e681 into sebastienros:main Feb 11, 2025
3 checks passed
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