The Wayback Machine - https://web.archive.org/web/20220127084824/https://github.com/dotnet/aspnetcore/pull/39809
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 support for arrays of types with TryParse #39809

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

@davidfowl
Copy link
Member

@davidfowl davidfowl commented Jan 27, 2022

  • Added inferred query support for methods where the body inference is disabled.
  • Added a test

Fixes #32516

- Added inferred query support for methods where the body inference is disabled.
- Added a test
{
// We only infer parameter types if you have an array of TryParsables and:
// - DisableInferredFromBody is true
// - TBD: You have explicitly declared a [FromBody] so it's no longer ambiguous
Copy link
Member Author

@davidfowl davidfowl Jan 27, 2022

Choose a reason for hiding this comment

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

Not sure about this but its an idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

1 participant