Skip to content

ReactiveCommand.Create method that takes an Action<object> #802

@distantcam

Description

@distantcam

With C# 6 coming there's some nice syntax saving to be made with ViewModels.

public ICommand MyObservableCommand => ReactiveCommand.CreateAsyncObservable(MyObservableMethod);
public ICommand MyTaskCommand => ReactiveCommand.CreateAsyncTask(MyTaskMethod);

It would be nice if it was also possible to do this with commands that just take an Action<object> as well.

public ICommand MyCommand => ReactiveCommand.Create(MyMethod);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions