Skip to content

[NET10.0] Annotate converters for nullability 3/n #29314

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

Conversation

MartyIX
Copy link
Contributor

@MartyIX MartyIX commented May 5, 2025

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

Follow-up to #29276. See #28244 (comment) for details on motivation.

Issues Fixed

Contributes to #28860

@MartyIX MartyIX requested a review from a team as a code owner May 5, 2025 06:51
@MartyIX MartyIX requested review from mattleibow and rmarinho May 5, 2025 06:51
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label May 5, 2025
{
object ConvertFromInvariantString(string value, IServiceProvider serviceProvider);
}
object? ConvertFromInvariantString(string value, IServiceProvider serviceProvider);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is my best guess how it should be annotated based on implementations where

  • if serviceProvider is null, then ArgumentNullException is thrown
  • if value would be null, then there would be a crash in multiple scenarios.

@PureWeen
Copy link
Member

PureWeen commented May 7, 2025

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@MartyIX MartyIX force-pushed the feature/2025-05-04-Convert-nullability-3-n-NET10 branch from 330821b to 08a7305 Compare May 7, 2025 17:30
@PureWeen
Copy link
Member

PureWeen commented May 7, 2025

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen PureWeen moved this from Todo to Ready To Review in MAUI SDK Ongoing May 7, 2025
@github-project-automation github-project-automation bot moved this from Ready To Review to Approved in MAUI SDK Ongoing May 14, 2025
@rmarinho rmarinho merged commit 84331b3 into dotnet:net10.0 May 14, 2025
128 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Done in MAUI SDK Ongoing May 14, 2025
@MartyIX MartyIX deleted the feature/2025-05-04-Convert-nullability-3-n-NET10 branch May 14, 2025 14:30
@github-actions github-actions bot locked and limited conversation to collaborators Jun 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community ✨ Community Contribution
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants