Class ActionFactory<TTuple>
- Namespace
- Cuemon
- Assembly
- Cuemon.Core.dll
Provides an easy way of invoking an System.Action delegate regardless of the amount of parameters provided.
public sealed class ActionFactory<TTuple> : TemplateFactory<TTuple> where TTuple : Template
Type Parameters
TTuple
The type of the n-tuple representation of a Template.
- Inheritance
-
ObjectTemplateFactory<TTuple>ActionFactory<TTuple>
- Inherited Members
Constructors
ActionFactory(Action<TTuple>, TTuple)
Initializes a new instance of the ActionFactory class.
public ActionFactory(Action<TTuple> method, TTuple tuple)
Parameters
method
Action<TTuple>The delegate to invoke.
tuple
TTupleThe n-tuple argument of
method
.
Methods
Clone()
Creates a shallow copy of the current ActionFactory<TTuple> object.
public override TemplateFactory<TTuple> Clone()
Returns
- TemplateFactory<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.
public void ExecuteMethod()