-
Notifications
You must be signed in to change notification settings - Fork 1k
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 ContainerSelectorBehavior #12961
base: main
Are you sure you want to change the base?
Conversation
src\System.Windows.Forms.Design\src\System\Windows\Forms\Design\ControlDesigner.cs#L669 src\System.Windows.Forms.Design\src\System\Windows\Forms\Design\ControlDesigner.cs(669,69): error CS8604: (NETCORE_ENGINEERING_TELEMETRY=Build) Possible null reference argument for parameter 'serviceProvider' in 'ContainerSelectorBehavior.ContainerSelectorBehavior(Control containerControl, IServiceProvider serviceProvider)'. |
...m.Windows.Forms.Design/src/System/Windows/Forms/Design/Behavior/ContainerSelectorBehavior.cs
Outdated
Show resolved
Hide resolved
abb0433
to
43c499b
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #12961 +/- ##
====================================================
- Coverage 96.95044% 74.94502% -22.00542%
====================================================
Files 1225 3275 +2050
Lines 357134 643812 +286678
Branches 5537 47446 +41909
====================================================
+ Hits 346243 482505 +136262
- Misses 10049 152469 +142420
- Partials 842 8838 +7996
Flags with carried forward coverage won't be shown. Click here to find out more. |
{ | ||
if (_moveBehavior is null) | ||
{ | ||
if (Component.Site is null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use pattern matching to avoid invoking Component.Site property twice.
43c499b
to
ac5bedd
Compare
Proposed changes
Microsoft Reviewers: Open in CodeFlow