Class AbstractTransformationRule<TIn1, TIn2, TOut>
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.
Inheritance
Inherited Members
Namespace: NMF.Transformations
Assembly: NMF.Transformations.dll
Syntax
public abstract class AbstractTransformationRule<TIn1, TIn2, TOut> : TransformationRule<TIn1, TIn2, TOut> where TIn1 : class where TIn2 : class where TOut : class
Type Parameters
Name | Description |
---|---|
TIn1 | The type of the first input argument for this transformation rule |
TIn2 | The type of the second input argument for this transformation rule |
TOut | The type of output, that is generated in an instantiating rule |
Methods
| Edit this page View SourceCreateOutput(TIn1, TIn2, ITransformationContext)
Creates the output of this transformation rule
Declaration
public override TOut CreateOutput(TIn1 input1, TIn2 input2, ITransformationContext context)
Parameters
Type | Name | Description |
---|---|---|
TIn1 | input1 | The first input argument for this computation |
TIn2 | input2 | The second input argument for this computation |
ITransformationContext | context | The context in which the output is required |
Returns
Type | Description |
---|---|
TOut | The output for this transformation |
Overrides
Remarks
Creation of transformation rule outputs is not supported for abstract transformation rules and thus, calling this method will result in an InvalidOperationException