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 TransparentBehavior #11298
base: main
Are you sure you want to change the base?
Conversation
20695a8
to
3724fcd
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11298 +/- ##
===================================================
+ Coverage 74.26878% 74.27277% +0.00398%
===================================================
Files 3025 3025
Lines 626861 626861
Branches 46742 46743 +1
===================================================
+ Hits 465562 465587 +25
+ Misses 157959 157931 -28
- Partials 3340 3343 +3
Flags with carried forward coverage won't be shown. Click here to find out more. |
....Windows.Forms.Design/src/System/Windows/Forms/Design/ControlDesigner.TransparentBehavior.cs
Outdated
Show resolved
Hide resolved
....Windows.Forms.Design/src/System/Windows/Forms/Design/ControlDesigner.TransparentBehavior.cs
Outdated
Show resolved
Hide resolved
3724fcd
to
143bfa6
Compare
@@ -23,7 +21,7 @@ internal class TransparentBehavior : Behavior.Behavior | |||
/// <summary> | |||
/// Constructor that accepts the related ControlDesigner. | |||
/// </summary> | |||
internal TransparentBehavior(ControlDesigner designer) => _designer = designer; | |||
internal TransparentBehavior(ControlDesigner designer) => _designer = designer.OrThrowIfNull(); |
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.
The designer here can be changed to be nullable ControlDesigner? designer
because designer.OrThrowIfNull()
is added, so that you can avoid changing the Public method in ControlBodyGlyph.cs
Proposed changes
Microsoft Reviewers: Open in CodeFlow