Skip to content

Instantly share code, notes, and snippets.

@kassyi
Last active July 6, 2017 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kassyi/0fc955f57893f918d848200416513c7e to your computer and use it in GitHub Desktop.
Save kassyi/0fc955f57893f918d848200416513c7e to your computer and use it in GitHub Desktop.
public class TestModel
{
public ReactiveCommand cw { get; } = new ReactiveCommand();
//↓エラーも出ず、意図した動作ができない。ハマる。
//public ReactiveCommand cw = new ReactiveCommand();
public Test()
{
//todo: ボタンを押すとhogeが出力されるようにする
cw.Subscribe(_ => { System.Diagnostics.Debug.WriteLine("hoge"); });
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment