ICommand<T> Interface
Defines a command with a strongly-typed parameter.
public interface ICommand<T> : ICommand
- Type Parameters:
-
T
-The parameter type.
Methods
CanExecute(T)
Returns whether the command can execute.
bool CanExecute(T parameter)
Parameter | Type | Description |
---|---|---|
parameter | T | The parameter to examine. |
Returns
- bool:
true
if the command can execute; otherwise,false
.
Execute(T)
Executes the command.
void Execute(T parameter)
Parameter | Type | Description |
---|---|---|
parameter | T | The parameter to examine. |