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

Change Nullability annotation on ISelectionService.PrimarySelection #81254

Merged
merged 2 commits into from
Jan 30, 2023
Merged

Change Nullability annotation on ISelectionService.PrimarySelection #81254

merged 2 commits into from
Jan 30, 2023

Conversation

elachlan
Copy link
Contributor

@elachlan elachlan commented Jan 27, 2023

The docs do not say its nullable, but winforms implementation has it returning a null value when there isn't anything selected.

https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.design.iselectionservice.primaryselection?view=net-6.0

Related to ongoing work to null annotate the winforms codebase.

dotnet/winforms#8342

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Jan 27, 2023
@elachlan
Copy link
Contributor Author

CC: @lonitra

@ghost
Copy link

ghost commented Jan 27, 2023

Tagging subscribers to this area: @dotnet/area-system-componentmodel
See info in area-owners.md if you want to be subscribed.

Issue Details

The docs do not say its nullable, but winforms implementation has it returning a null value when there isn't anything selected.

https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.design.iselectionservice.primaryselection?view=net-6.0

Related to ongoing work to null annotate the winforms codebase.

#8342

Author: elachlan
Assignees: -
Labels:

area-System.ComponentModel, community-contribution

Milestone: -

Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

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

Thanks.

@stephentoub stephentoub merged commit a342915 into dotnet:main Jan 30, 2023
@elachlan elachlan deleted the ISelectionService-Nullability branch January 30, 2023 04:11
@ghost ghost locked as resolved and limited conversation to collaborators Mar 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.ComponentModel community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants