Skip to content
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

Fallback Values for Nulls in Expressions #77

Open
Noggog opened this issue Aug 13, 2020 · 0 comments
Open

Fallback Values for Nulls in Expressions #77

Noggog opened this issue Aug 13, 2020 · 0 comments

Comments

@Noggog
Copy link

Noggog commented Aug 13, 2020

Would be nice to have the binding setups allow for fallback functionality when an expression encounters a null. Rather than the RxUI pattern of not firing anything, this system would fire the fallback value whenever the expression chain is broken by the presence of a null.

Something like

this.WhenPropertyChanges(x => x.Property1.Property2!.MyInt, fallback: default(int));

I imagine this could either could be the default functionality, and/or only take effect if a fallback value is provided like above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant