Class ActionFactory<TTuple>
Provides an easy way of invoking an System.Action delegate regardless of the amount of parameters provided.
Inherited Members
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public sealed class ActionFactory<TTuple> : TemplateFactory<TTuple> where TTuple : Template
Type Parameters
Name | Description |
---|---|
TTuple | The type of the n-tuple representation of a Template. |
Constructors
| Improve this DocActionFactory(Action<TTuple>, TTuple)
Initializes a new instance of the ActionFactory class.
Declaration
public ActionFactory(Action<TTuple> method, TTuple tuple)
Parameters
Type | Name | Description |
---|---|---|
System.Action<TTuple> | method | The delegate to invoke. |
TTuple | tuple | The n-tuple argument of |
Methods
| Improve this DocClone()
Creates a shallow copy of the current ActionFactory<TTuple> object.
Declaration
public ActionFactory<TTuple> Clone()
Returns
Type | Description |
---|---|
ActionFactory<TTuple> | A new ActionFactory<TTuple> that is a copy of this instance. |
Remarks
When thread safety is required this is the method to invoke.
ExecuteMethod()
Executes the delegate associated with this instance.
Declaration
public void ExecuteMethod()