RxCookbook icon indicating copy to clipboard operation
RxCookbook copied to clipboard

Deep property change notification with the Switch operator

Open LeeCampbell opened this issue 10 years ago • 0 comments

Either show how to build a query that allows a user to observe ObjA.PropB.SubPropC by leaveraging Switch e.g.

ObjA.WhenPropertyChanges(vm=>vm.PropB)
    .Select(b=>b.WhenPropertyChanges(vm=>vm.SubPropC))
    .Switch()  

We could potentially extend this to build an Expression builder so you could just

ObjA.WhenPropertyChanges(vm=>vm.PropB.SubPropC)

LeeCampbell avatar Mar 19 '14 16:03 LeeCampbell