/// <inheritdoc cref="IReactiveCommand.ObserveProperty"/> public static IReactiveCommand <TObserved> ObserveProperty <TObserved>(this IReactiveCommand <TObserved> command, Expression <Func <TObserved, object> > property) { var propertyName = ExpressionHelper.GetMemberName(property); var type = ExpressionHelper.GetMemberType(property); command.ObserveProperty(propertyName, Validators.GetValidator(type)); return(command); }
/// <inheritdoc cref="IReactiveCommand.ObserveProperty"/> public static IReactiveCommand ObserveProperty <TObserved>(this IReactiveCommand <TObserved> command, Expression <Func <TObserved, object> > propertyName, Validator validator) { return(command.ObserveProperty(ExpressionHelper.GetMemberName(propertyName), validator)); }