Created
June 21, 2019 11:26
-
-
Save runceel/34b10ab65294bd5d1e9fe7f63f00c6e5 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
class ViewModel | |
{ | |
public ReactiveProperty<string> Input { get; } | |
public ReactiveProperty<string> Output { get; } | |
public ViewModel() | |
{ | |
Input = new ReactiveProperty(""); | |
Output = Input | |
.Delay(TimeSpan.FromSecond(1)) // Using a Rx method. | |
.Select(x => x.ToUpper()) // Using a LINQ method. | |
.ToReactiveProperty(); // Convert to ReactiveProperty | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment