Interface IRelayCommand<T>
A generic interface representing a more specific version of IRelayCommand.
public interface IRelayCommand<in T> : IRelayCommand, ICommand
Type Parameters
T
The type used as argument for the interface methods.
- Inherited Members
Methods
CanExecute(T?)
Provides a strongly-typed variant of CanExecute(object).
bool CanExecute(T? parameter)
Parameters
parameter
TThe input parameter.
Returns
- bool
Whether or not the current command can be executed.
Remarks
Use this overload to avoid boxing, if T
is a value type.
Execute(T?)
Provides a strongly-typed variant of Execute(object).
void Execute(T? parameter)
Parameters
parameter
TThe input parameter.
Remarks
Use this overload to avoid boxing, if T
is a value type.