i am using the SampleModel project from MVVM Foundation.Why is ICommand
returned when _decrementCommand
is declared as RelayCommand
. I know RelayCommand
inherits ICommand
but won't is be clearer to just return a RelayCommand
?
public ICommand DecrementCommand {
get { return _decrementCommand ?? (_decrementCommand = new RelayCommand(() => --this.Value)); }
}
RelayCommand _decrementCommand;