-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Apply nullability attributes to TimeChangedEventArgs #29572
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -88,8 +88,8 @@ public void DatePickerSelectedEventArgs(TimeSpan initialTime, TimeSpan finalTime | |
| timePicker.Time = initialTime; | ||
|
|
||
| TimePicker pickerFromSender = null; | ||
| TimeSpan oldTime = new TimeSpan(); | ||
| TimeSpan newTime = new TimeSpan(); | ||
| TimeSpan? oldTime = new TimeSpan(); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should it be initialized now at null
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could be. In this case following the same pattern done with the changes in DatePicker (handler, tests etc): https://github.com/dotnet/maui/blob/net10.0/src/Controls/tests/Core.UnitTests/DatePickerUnitTest.cs#L179
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, we might want to create a couple of more tests with these variables taking null and everything works too. |
||
| TimeSpan? newTime = new TimeSpan(); | ||
|
|
||
| timePicker.TimeSelected += (s, e) => | ||
| { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.