Skip to content

Conversation

@ChrisPulman
Copy link
Member

WhenAnyObservable
WhenAnyValue
WhenAny
updated to take a Nullable first parameter

Updated editorconfig to make var the prominent of Explicit types as per the website suggestion

Fixed a few non compliances to the coding standard

What kind of change does this PR introduce?

update

What is the current behaviour?

WhenAnyObservable, WhenAnyValue and WhenAny currently require decorators to allow nullable objects to be used

What is the new behaviour?

WhenAnyObservable, WhenAnyValue and WhenAny should nowrequire less decorators to allow nullable objects to be used

What might this PR break?

none expected, a code review should be done on existing code to remove any redundant ! and ? decorators

Please check if the PR fulfils these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Other information:

WhenAnyObservable
WhenAnyValue
WhenAny
updated to take a Nullable first parameter

Updated editorconfig to make var the prominent of Explicit types as per the website suggestion

Fixed a few non compliances to the coding standard
@ChrisPulman ChrisPulman changed the title Update to WhenAnyObservable, WhenAny and WhenAnyValue to make Nullable feature WhenAnyObservable, WhenAny and WhenAnyValue to make Nullable May 17, 2021
@codecov
Copy link

codecov bot commented May 17, 2021

Codecov Report

Merging #2760 (b303dea) into main (1da2bd6) will decrease coverage by 0.14%.
The diff coverage is 86.25%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2760      +/-   ##
==========================================
- Coverage   62.63%   62.49%   -0.15%     
==========================================
  Files         133      133              
  Lines        4775     4709      -66     
==========================================
- Hits         2991     2943      -48     
+ Misses       1784     1766      -18     
Impacted Files Coverage Δ
...rvableCollectionChangedToListChangedTransformer.cs 0.00% <0.00%> (ø)
...ctiveUI.Winforms/PanelSetMethodBindingConverter.cs 13.33% <0.00%> (ø)
src/ReactiveUI.Wpf/TransitioningContentControl.cs 9.09% <0.00%> (ø)
...ctiveUI/Bindings/Property/PropertyBindingMixins.cs 91.66% <ø> (ø)
src/ReactiveUI/VariadicTemplates.cs 36.65% <ø> (ø)
src/ReactiveUI/Expression/ExpressionRewriter.cs 57.77% <25.00%> (ø)
...I/ObservableForProperty/OAPHCreationHelperMixin.cs 38.12% <50.00%> (ø)
....Winforms/TableContentSetMethodBindingConverter.cs 25.00% <57.14%> (+12.50%) ⬆️
...UI/Bindings/Command/CommandBinderImplementation.cs 58.20% <66.66%> (ø)
src/ReactiveUI/Expression/Reflection.cs 72.46% <87.87%> (+0.94%) ⬆️
... and 21 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1da2bd6...b303dea. Read the comment docs.

Reflection: unfortunately CS0165 rule stops me from using :
            if (member is not FieldInfo field)
            {
                return (obj, _) => field.GetValue(obj) ?? throw new InvalidOperationException();
            }

PanelSetMethodBindingConverters:
Reverted code and put IDE0046 rule in source to stop future updates to suggested
@glennawatson glennawatson merged commit dd7a486 into main May 17, 2021
@glennawatson glennawatson deleted the Update_WhenAny_WhenAnyValue_ToUseNullable branch May 17, 2021 07:19
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants