Class AbstractTransformationRule<TIn, TOut>
- Namespace
- NMF.Transformations
- Assembly
- NMF.Transformations.dll
Defines a transformation rule with a single input argument 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<TIn, TOut> : TransformationRule<TIn, TOut> where TIn : class where TOut : class
Type Parameters
TInThe type of the input argument for this transformation rule
TOutThe type of output, that is generated in an instantiating rule
- Inheritance
-
TransformationRuleBase<TIn, TOut>TransformationRule<TIn, TOut>AbstractTransformationRule<TIn, TOut>
- Derived
- Inherited Members
- Extension Methods
Methods
CreateOutput(TIn, ITransformationContext)
Creates the output of this transformation rule
public override TOut CreateOutput(TIn input, ITransformationContext context)
Parameters
inputTInThe 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