Class AbstractTransformationRule<TIn, TOut>
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.
Inheritance
TransformationRuleBase<TIn, TOut>
TransformationRule<TIn, TOut>
AbstractTransformationRule<TIn, TOut>
Inherited Members
Namespace: NMF.Transformations
Assembly: NMF.Transformations.dll
Syntax
public abstract class AbstractTransformationRule<TIn, TOut> : TransformationRule<TIn, TOut> where TIn : class where TOut : class
Type Parameters
Name | Description |
---|---|
TIn | The type of the input argument for this transformation rule |
TOut | The type of output, that is generated in an instantiating rule |
Methods
| Edit this page View SourceCreateOutput(TIn, ITransformationContext)
Creates the output of this transformation rule
Declaration
public override TOut CreateOutput(TIn input, ITransformationContext context)
Parameters
Type | Name | Description |
---|---|---|
TIn | input | The 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