Class AbstractTransformationRule<TIn1, TIn2, TOut>
- Namespace
- NMF.Transformations
- Assembly
- NMF.Transformations.dll
Defines a transformation rule with two input arguments that is abstract, i.e. it cannot create an output This means that there must exist transformation rules that are marked instantiating for this rule.
public abstract class AbstractTransformationRule<TIn1, TIn2, TOut> : TransformationRule<TIn1, TIn2, TOut> where TIn1 : class where TIn2 : class where TOut : class
Type Parameters
TIn1The type of the first input argument for this transformation rule
TIn2The type of the second input argument for this transformation rule
TOutThe type of output, that is generated in an instantiating rule
- Inheritance
-
GeneralTransformationRule<TIn1, TIn2>TransformationRuleBase<TIn1, TIn2, TOut>TransformationRule<TIn1, TIn2, TOut>AbstractTransformationRule<TIn1, TIn2, TOut>
- Inherited Members
- Extension Methods
Methods
CreateOutput(TIn1, TIn2, ITransformationContext)
Creates the output of this transformation rule
public override TOut CreateOutput(TIn1 input1, TIn2 input2, ITransformationContext context)
Parameters
input1TIn1The first input argument for this computation
input2TIn2The second input argument for this computation
contextITransformationContextThe context in which the output is required
Returns
- TOut
The output for this transformation
Remarks
Creation of transformation rule outputs is not supported for abstract transformation rules and thus, calling this method will result in an InvalidOperationException