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

Enable nullability in DesignerFrame and clean it up #9966

Merged
merged 5 commits into from
Sep 29, 2023

Conversation

halgab
Copy link
Contributor

@halgab halgab commented Sep 21, 2023

Proposed changes

Microsoft Reviewers: Open in CodeFlow

@ghost ghost assigned halgab Sep 21, 2023
@ghost ghost added the area: NRT label Sep 21, 2023
@halgab halgab marked this pull request as ready for review September 21, 2023 08:35
@halgab halgab requested a review from a team as a code owner September 21, 2023 08:35
@LeafShi1
Copy link
Member

LGTM!

ISelectionService selSvc = (ISelectionService)_designerSite.GetService(typeof(ISelectionService));
if (selSvc is not null)
ISelectionService? selSvc = _designerSite.GetService<ISelectionService>();
if (selSvc?.PrimarySelection is Control { IsDisposed: false } ctrl)
Copy link
Member

Choose a reason for hiding this comment

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

we need consistency in adapting this syntax standard. Will get this reviewed collectively and make decision across the PRs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm happy to rollback such changes if it's a contentious issue. Here it doesn't add much to the table anyway.

Copy link
Member

Choose a reason for hiding this comment

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

Not yet. Will update here if needed. We just need consistency in adapting these.

Copy link
Member

Choose a reason for hiding this comment

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

We are preferring pattern matching wherever possible. While we do not expect or encourage community to do a pass specifically for the pattern matching on the existing code, if you happen to be working on the code as part of some other fix, identify an opportunity to incorporate pattern matching, we take it.

@gpetrou and @halgab as FYI.

@lonitra lonitra added the waiting-on-team This work item needs to be discussed with team or is waiting on team action in order to proceed label Sep 28, 2023
@dreddy-work dreddy-work removed the waiting-on-team This work item needs to be discussed with team or is waiting on team action in order to proceed label Sep 29, 2023
@dreddy-work dreddy-work merged commit 4ea76df into dotnet:main Sep 29, 2023
9 checks passed
@halgab halgab deleted the DesignerFrame-ArrayList branch September 29, 2023 17:02
@ghost ghost locked as resolved and limited conversation to collaborators Oct 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants