-
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Following the docs I tried:
[ObservableAsProperty]
public partial Type SearchTermType { get; }
...
this.WhenAnyValue(x => x.SelectedProperty)
.WhereNotNull()
.Select(p => p.Type)
.ToProperty(this, x => x.SearchTermType);
but when getting to code that references SearchTermType it is null;
however, this code, referencing the generated code backing OAPH field does work:
_searchTermTypeHelper = this.WhenAnyValue(x => x.SelectedProperty)
.WhereNotNull()
.Select(p => p.Type)
.ToProperty(this, x => x.SearchTermType);
this is the using the approach I see in ReactiveGeneratorDemo.ViewModels.OaphViewModel
Metadata
Metadata
Assignees
Labels
No labels