-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Nullable annotate System.Drawing.Common #31716
Nullable annotate System.Drawing.Common #31716
Conversation
173842e
to
5da7054
Compare
src/libraries/System.Drawing.Common/ref/System.Drawing.Common.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/ref/System.Drawing.Common.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/src/System/Drawing/GraphicsContext.cs
Show resolved
Hide resolved
PR blocked until dotnet/arcade#4796 is merged and package update in runtime |
cce73df
to
11bea39
Compare
c9212da
to
0deb871
Compare
src/libraries/System.Drawing.Common/src/System/Drawing/BufferedGraphics.Unix.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/src/System/Drawing/BufferedGraphics.Unix.cs
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/src/System/Drawing/Design/CategoryNameCollection.cs
Show resolved
Hide resolved
ccde3f3
to
632ebd3
Compare
src/libraries/Common/src/Interop/Windows/Ole32/Interop.STATSTG.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/src/System/Drawing/BufferedGraphicsContext.Windows.cs
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/src/System/Drawing/Drawing2D/CustomLineCap.cs
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/src/System/Drawing/Drawing2D/GraphicsPath.Unix.cs
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/src/System/Drawing/Drawing2D/GraphicsPath.Windows.cs
Show resolved
Hide resolved
...ibraries/System.Drawing.Common/src/System/Drawing/Printing/PreviewPrintController.Windows.cs
Outdated
Show resolved
Hide resolved
...ibraries/System.Drawing.Common/src/System/Drawing/Printing/PreviewPrintController.Windows.cs
Show resolved
Hide resolved
|
||
private PrinterSettings _printerSettings = new PrinterSettings(); | ||
private PageSettings _defaultPageSettings; | ||
|
||
private PrintController _printController; | ||
private PrintController? _printController; | ||
|
||
private bool _originAtMargins; | ||
private bool _userSetPageSettings; |
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.
Below on row 151-196 event accessors BeginPrint, EndPrint, PrintPage, QueryPageSettings
should be nullable
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.
Why do they need to be nullable?
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.
I am not sure about that, but that is what we were doing before for event accessors CC @stephentoub
src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrinterSettings.Unix.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrinterSettings.Unix.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrinterSettings.Windows.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrinterSettings.Windows.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintingServices.Unix.cs
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintingServices.Unix.cs
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/src/System/Drawing/Region.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/src/System/Drawing/Region.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/src/System/Drawing/Region.cs
Outdated
Show resolved
Hide resolved
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.
Left some comments, other than that LGTM, thanks!
5dbdbd2
to
fe36f59
Compare
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.
Thanks, @eiriktsarpalis -- LGTM
Contributes to #2339