Skip to content

Instantly share code, notes, and snippets.

@ionoy
Created November 2, 2015 14:51
Show Gist options
  • Save ionoy/85e2fc0b74dd5c544ab1 to your computer and use it in GitHub Desktop.
Save ionoy/85e2fc0b74dd5c544ab1 to your computer and use it in GitHub Desktop.
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