Created
November 2, 2015 14:51
-
-
Save ionoy/85e2fc0b74dd5c544ab1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface IService { | |
IObservable<int> Values { get; } | |
} | |
viewmodel StatusViewModel { | |
string Name = { | |
var val = stream service.Values; | |
return val + 3; | |
} | |
// Is translated to | |
{ | |
service.Values | |
.Select(val => val + 3) | |
.BindTo(vm => vm.Name); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment