Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (9 sloc) 605 Bytes

Command Names

Don't suffix ReactiveCommand properties' names with Command; instead, name the property using a verb that describes the command's action. For example:

public ReactiveCommand Synchronize { get; private set; }

// and then in the ctor:
Synchronize = ReactiveCommand.CreateFromObservable(
  _ => SynchronizeImpl(mergeInsteadOfRebase: !IsAhead));

When a ReactiveCommand's implementation is too large or too complex for an anonymous delegate, name the implementation's method the same name as the command, but with Impl suffixed (for example, SychronizeImpl above).