Class LambdaCommandData
Wraps a dynamic delegate such as Action and Func so that a lambda can be used as a command.
Inherited Members
Namespace: QFSW.QC
Assembly: QFSW.QC.dll
Syntax
public class LambdaCommandData : CommandData
Constructors
LambdaCommandData(Delegate, String, String)
Constructs the command data from the provided lambda.
Declaration
public LambdaCommandData(Delegate lambda, string commandName, string commandDescription = "")
Parameters
Type | Name | Description |
---|---|---|
Delegate | lambda | The lambda to create a command from. To work around type system limitation you may need to first store the lambda in a strong delegate type like Action or Func. |
String | commandName | The name to use for the command. |
String | commandDescription | The description, if any, for the command. |
Methods
GetInvocationTargets(MethodInfo)
Declaration
protected override IEnumerable<object> GetInvocationTargets(MethodInfo invokingMethod)
Parameters
Type | Name | Description |
---|---|---|
MethodInfo | invokingMethod |
Returns
Type | Description |
---|---|
IEnumerable<Object> |