Table of Contents

Class TransformationEngine

Namespace
NMF.Transformations
Assembly
NMF.Transformations.dll

This class provides methods to execute transformations

public static class TransformationEngine
Inheritance
TransformationEngine
Inherited Members

Methods

ProcessMany<TIn>(IEnumerable<TIn>, ITransformationEngineContext)

Processes the input argument using the provided transformation

public static void ProcessMany<TIn>(IEnumerable<TIn> inputs, ITransformationEngineContext context) where TIn : class

Parameters

inputs IEnumerable<TIn>

The input parameters

context ITransformationEngineContext

The context that should be used (must not be null)

Type Parameters

TIn

The type of the input argument

ProcessMany<TIn>(IEnumerable<TIn>, ITransformationEngineContext, GeneralTransformationRule<TIn>)

Processes the input argument using the provided transformation

public static void ProcessMany<TIn>(IEnumerable<TIn> inputs, ITransformationEngineContext context, GeneralTransformationRule<TIn> startRule) where TIn : class

Parameters

inputs IEnumerable<TIn>

The input parameters

context ITransformationEngineContext

The context that should be used (must not be null)

startRule GeneralTransformationRule<TIn>

The rule that should be started with. If this is null, an applicable rule is found.

Type Parameters

TIn

The type of the input argument

ProcessMany<TIn>(IEnumerable<TIn>, Transformation)

Processes the input argument using the provided transformation

public static void ProcessMany<TIn>(IEnumerable<TIn> inputs, Transformation transformation) where TIn : class

Parameters

inputs IEnumerable<TIn>

The input parameter

transformation Transformation

The transformation that shall be used for this operation (must not be null, but can be uninitialized)

Type Parameters

TIn

The type of the input argument

ProcessMany<TIn1, TIn2>(IEnumerable<Tuple<TIn1, TIn2>>, ITransformationEngineContext)

Processes the input arguments using the provided transformation

public static void ProcessMany<TIn1, TIn2>(IEnumerable<Tuple<TIn1, TIn2>> inputs, ITransformationEngineContext context) where TIn1 : class where TIn2 : class

Parameters

inputs IEnumerable<Tuple<TIn1, TIn2>>

The input parameters

context ITransformationEngineContext

The context that should be used (must not be null).

Type Parameters

TIn1

The type of the first input argument

TIn2

The type of the second input argument

ProcessMany<TIn1, TIn2>(IEnumerable<Tuple<TIn1, TIn2>>, ITransformationEngineContext, GeneralTransformationRule<TIn1, TIn2>)

Processes the input arguments using the provided transformation

public static void ProcessMany<TIn1, TIn2>(IEnumerable<Tuple<TIn1, TIn2>> inputs, ITransformationEngineContext context, GeneralTransformationRule<TIn1, TIn2> startRule) where TIn1 : class where TIn2 : class

Parameters

inputs IEnumerable<Tuple<TIn1, TIn2>>

The input parameters

context ITransformationEngineContext

The context that should be used (must not be null).

startRule GeneralTransformationRule<TIn1, TIn2>

The rule that should be started with. If this is null, an applicable rule is found.

Type Parameters

TIn1

The type of the first input argument

TIn2

The type of the second input argument

ProcessMany<TIn1, TIn2>(IEnumerable<Tuple<TIn1, TIn2>>, Transformation)

Processes the input arguments using the provided transformation

public static void ProcessMany<TIn1, TIn2>(IEnumerable<Tuple<TIn1, TIn2>> inputs, Transformation transformation) where TIn1 : class where TIn2 : class

Parameters

inputs IEnumerable<Tuple<TIn1, TIn2>>

The input parameters

transformation Transformation

The transformation that shall be used for this operation (must not be null, but can be uninitialized)

Type Parameters

TIn1

The type of the first input argument

TIn2

The type of the second input argument

Process<TIn>(TIn, ITransformationEngineContext)

Processes the input argument using the provided transformation

public static void Process<TIn>(TIn input, ITransformationEngineContext context) where TIn : class

Parameters

input TIn

The input parameter

context ITransformationEngineContext

The context that should be used (must not be null)

Type Parameters

TIn

The type of the input argument

Process<TIn>(TIn, ITransformationEngineContext, GeneralTransformationRule<TIn>)

Processes the input argument using the provided transformation

public static void Process<TIn>(TIn input, ITransformationEngineContext context, GeneralTransformationRule<TIn> startRule) where TIn : class

Parameters

input TIn

The input parameter

context ITransformationEngineContext

The context that should be used (must not be null)

startRule GeneralTransformationRule<TIn>

The rule that should be started with. If this is null, an applicable rule is found.

Type Parameters

TIn

The type of the input argument

Process<TIn>(TIn, Transformation)

Processes the input argument using the provided transformation

public static void Process<TIn>(TIn input, Transformation transformation) where TIn : class

Parameters

input TIn

The input parameter

transformation Transformation

The transformation that shall be used for this operation (must not be null, but can be uninitialized)

Type Parameters

TIn

The type of the input argument

Process<TIn1, TIn2>(TIn1, TIn2, ITransformationEngineContext)

Processes the input arguments using the provided transformation

public static void Process<TIn1, TIn2>(TIn1 input1, TIn2 input2, ITransformationEngineContext context) where TIn1 : class where TIn2 : class

Parameters

input1 TIn1

The first input parameter

input2 TIn2

The second input parameter

context ITransformationEngineContext

The context that should be used (must not be null).

Type Parameters

TIn1

The type of the first input argument

TIn2

The type of the second input argument

Process<TIn1, TIn2>(TIn1, TIn2, ITransformationEngineContext, GeneralTransformationRule<TIn1, TIn2>)

Processes the input arguments using the provided transformation

public static void Process<TIn1, TIn2>(TIn1 input1, TIn2 input2, ITransformationEngineContext context, GeneralTransformationRule<TIn1, TIn2> startRule) where TIn1 : class where TIn2 : class

Parameters

input1 TIn1

The first input parameter

input2 TIn2

The second input parameter

context ITransformationEngineContext

The context that should be used (must not be null).

startRule GeneralTransformationRule<TIn1, TIn2>

The rule that should be started with. If this is null, an applicable rule is found.

Type Parameters

TIn1

The type of the first input argument

TIn2

The type of the second input argument

Process<TIn1, TIn2>(TIn1, TIn2, Transformation)

Processes the input arguments using the provided transformation

public static void Process<TIn1, TIn2>(TIn1 input1, TIn2 input2, Transformation transformation) where TIn1 : class where TIn2 : class

Parameters

input1 TIn1

The first input parameter

input2 TIn2

The second input parameter

transformation Transformation

The transformation that shall be used for this operation (must not be null, but can be uninitialized)

Type Parameters

TIn1

The type of the first input argument

TIn2

The type of the second input argument

TransformMany<TOut>(IEnumerable<object[]>, Type[], ITransformationEngineContext)

Transforms the input argument into an output using the provided transformation

public static IEnumerable<TOut> TransformMany<TOut>(IEnumerable<object[]> inputs, Type[] types, ITransformationEngineContext context) where TOut : class

Parameters

inputs IEnumerable<object[]>

The input parameters

types Type[]

The types of the elements within the collection refered to in the inputs parameter

context ITransformationEngineContext

The context that should be used (must not be null).

Returns

IEnumerable<TOut>

The output from the transformation

Type Parameters

TOut

The desired output type

TransformMany<TOut>(IEnumerable<object[]>, Type[], ITransformationEngineContext, GeneralTransformationRule)

Transforms the input argument into an output using the provided transformation

public static IEnumerable<TOut> TransformMany<TOut>(IEnumerable<object[]> inputs, Type[] types, ITransformationEngineContext context, GeneralTransformationRule startRule) where TOut : class

Parameters

inputs IEnumerable<object[]>

The input parameters

types Type[]

The types of the elements within the collection refered to in the inputs parameter

context ITransformationEngineContext

The context that should be used (must not be null).

startRule GeneralTransformationRule

The rule that should be started with. If this is null, an applicable rule is found.

Returns

IEnumerable<TOut>

The output from the transformation

Type Parameters

TOut

The desired output type

TransformMany<TOut>(IEnumerable<object[]>, Type[], Transformation)

Transforms the input argument into an output using the provided transformation

public static IEnumerable<TOut> TransformMany<TOut>(IEnumerable<object[]> inputs, Type[] types, Transformation transformation) where TOut : class

Parameters

inputs IEnumerable<object[]>

The input parameters

types Type[]

The types of the elements within the collection refered to in the inputs parameter

transformation Transformation

The transformation that shall be used for this operation (must not be null, but can be uninitialized)

Returns

IEnumerable<TOut>

The output from the transformation

Type Parameters

TOut

The desired output type

TransformMany<TIn, TOut>(IEnumerable<TIn>, ITransformationEngineContext)

Transforms the input argument into an output using the provided transformation

public static IEnumerable<TOut> TransformMany<TIn, TOut>(IEnumerable<TIn> inputs, ITransformationEngineContext context) where TIn : class where TOut : class

Parameters

inputs IEnumerable<TIn>

The input parameters

context ITransformationEngineContext

The context that should be used (must not be null).

Returns

IEnumerable<TOut>

The output from the transformation

Type Parameters

TIn

The type of the input argument

TOut

The desired output type

TransformMany<TIn, TOut>(IEnumerable<TIn>, ITransformationEngineContext, TransformationRuleBase<TIn, TOut>)

Transforms the input argument into an output using the provided transformation

public static IEnumerable<TOut> TransformMany<TIn, TOut>(IEnumerable<TIn> inputs, ITransformationEngineContext context, TransformationRuleBase<TIn, TOut> startRule) where TIn : class where TOut : class

Parameters

inputs IEnumerable<TIn>

The input parameters

context ITransformationEngineContext

The context that should be used (must not be null).

startRule TransformationRuleBase<TIn, TOut>

The rule that should be started with. If this is null, an applicable rule is found.

Returns

IEnumerable<TOut>

The output from the transformation

Type Parameters

TIn

The type of the input argument

TOut

The desired output type

TransformMany<TIn, TOut>(IEnumerable<TIn>, Transformation)

Transforms the input argument into an output using the provided transformation

public static IEnumerable<TOut> TransformMany<TIn, TOut>(IEnumerable<TIn> inputs, Transformation transformation) where TIn : class where TOut : class

Parameters

inputs IEnumerable<TIn>

The input parameters

transformation Transformation

The transformation that shall be used for this operation (must not be null, but can be uninitialized)

Returns

IEnumerable<TOut>

The output from the transformation

Type Parameters

TIn

The type of the input argument

TOut

The desired output type

TransformMany<TIn1, TIn2, TOut>(IEnumerable<Tuple<TIn1, TIn2>>, ITransformationEngineContext)

Transforms the input arguments into an output using the provided transformation

public static IEnumerable<TOut> TransformMany<TIn1, TIn2, TOut>(IEnumerable<Tuple<TIn1, TIn2>> inputs, ITransformationEngineContext context) where TIn1 : class where TIn2 : class where TOut : class

Parameters

inputs IEnumerable<Tuple<TIn1, TIn2>>

The input parameters

context ITransformationEngineContext

The context that should be used (must not be null)

Returns

IEnumerable<TOut>

The output from the transformation

Type Parameters

TIn1

The type of the first input argument

TIn2

The type of the second input argument

TOut

The desired output type

TransformMany<TIn1, TIn2, TOut>(IEnumerable<Tuple<TIn1, TIn2>>, ITransformationEngineContext, TransformationRuleBase<TIn1, TIn2, TOut>)

Transforms the input arguments into an output using the provided transformation

public static IEnumerable<TOut> TransformMany<TIn1, TIn2, TOut>(IEnumerable<Tuple<TIn1, TIn2>> inputs, ITransformationEngineContext context, TransformationRuleBase<TIn1, TIn2, TOut> startRule) where TIn1 : class where TIn2 : class where TOut : class

Parameters

inputs IEnumerable<Tuple<TIn1, TIn2>>

The first input parameters

context ITransformationEngineContext

The context that should be used (must not be null)

startRule TransformationRuleBase<TIn1, TIn2, TOut>

The rule that should be started with. If this is null, an applicable rule is found.

Returns

IEnumerable<TOut>

The output from the transformation

Type Parameters

TIn1

The type of the first input argument

TIn2

The type of the second input argument

TOut

The desired output type

TransformMany<TIn1, TIn2, TOut>(IEnumerable<Tuple<TIn1, TIn2>>, Transformation)

Transforms the input arguments into an output using the provided transformation

public static IEnumerable<TOut> TransformMany<TIn1, TIn2, TOut>(IEnumerable<Tuple<TIn1, TIn2>> inputs, Transformation transformation) where TIn1 : class where TIn2 : class where TOut : class

Parameters

inputs IEnumerable<Tuple<TIn1, TIn2>>

The input parameters

transformation Transformation

The transformation that shall be used for this operation (must not be null, but can be uninitialized)

Returns

IEnumerable<TOut>

The output from the transformation

Type Parameters

TIn1

The type of the first input argument

TIn2

The type of the second input argument

TOut

The desired output type

Transform<TOut>(object[], ITransformationEngineContext)

Transforms the input argument into an output using the provided transformation

public static TOut Transform<TOut>(object[] input, ITransformationEngineContext context) where TOut : class

Parameters

input object[]

The input parameter

context ITransformationEngineContext

The context that should be used (must not be null).

Returns

TOut

The output from the transformation

Type Parameters

TOut

The desired output type

Transform<TOut>(object[], ITransformationEngineContext, GeneralTransformationRule)

Transforms the input argument into an output using the provided transformation

public static TOut Transform<TOut>(object[] input, ITransformationEngineContext context, GeneralTransformationRule startRule) where TOut : class

Parameters

input object[]

The input parameter

context ITransformationEngineContext

The context that should be used (must not be null).

startRule GeneralTransformationRule

The rule that should be started with. If this is null, an applicable rule is found.

Returns

TOut

The output from the transformation

Type Parameters

TOut

The desired output type

Transform<TOut>(object[], Transformation)

Transforms the input argument into an output using the provided transformation

public static TOut Transform<TOut>(object[] input, Transformation transformation) where TOut : class

Parameters

input object[]

The input parameter

transformation Transformation

The transformation that shall be used for this operation (must not be null, but can be uninitialized)

Returns

TOut

The output from the transformation

Type Parameters

TOut

The desired output type

Transform<TIn, TOut>(TIn, ITransformationEngineContext)

Transforms the input argument into an output using the provided transformation

public static TOut Transform<TIn, TOut>(TIn input, ITransformationEngineContext context) where TIn : class where TOut : class

Parameters

input TIn

The input parameter

context ITransformationEngineContext

The context that should be used (must not be null).

Returns

TOut

The output from the transformation

Type Parameters

TIn

The type of the input argument

TOut

The desired output type

Transform<TIn, TOut>(TIn, ITransformationEngineContext, TransformationRuleBase<TIn, TOut>)

Transforms the input argument into an output using the provided transformation

public static TOut Transform<TIn, TOut>(TIn input, ITransformationEngineContext context, TransformationRuleBase<TIn, TOut> startRule) where TIn : class where TOut : class

Parameters

input TIn

The input parameter

context ITransformationEngineContext

The context that should be used (must not be null).

startRule TransformationRuleBase<TIn, TOut>

The rule that should be started with. If this is null, an applicable rule is found.

Returns

TOut

The output from the transformation

Type Parameters

TIn

The type of the input argument

TOut

The desired output type

Transform<TIn, TOut>(TIn, Transformation)

Transforms the input argument into an output using the provided transformation

public static TOut Transform<TIn, TOut>(TIn input, Transformation transformation) where TIn : class where TOut : class

Parameters

input TIn

The input parameter

transformation Transformation

The transformation that shall be used for this operation (must not be null, but can be uninitialized)

Returns

TOut

The output from the transformation

Type Parameters

TIn

The type of the input argument

TOut

The desired output type

Transform<TIn1, TIn2, TOut>(TIn1, TIn2, ITransformationEngineContext)

Transforms the input arguments into an output using the provided transformation

public static TOut Transform<TIn1, TIn2, TOut>(TIn1 input1, TIn2 input2, ITransformationEngineContext context) where TIn1 : class where TIn2 : class where TOut : class

Parameters

input1 TIn1

The first input parameter

input2 TIn2

The second input parameter

context ITransformationEngineContext

The context that should be used (must not be null)

Returns

TOut

The output from the transformation

Type Parameters

TIn1

The type of the first input argument

TIn2

The type of the second input argument

TOut

The desired output type

Transform<TIn1, TIn2, TOut>(TIn1, TIn2, ITransformationEngineContext, TransformationRuleBase<TIn1, TIn2, TOut>)

Transforms the input arguments into an output using the provided transformation

public static TOut Transform<TIn1, TIn2, TOut>(TIn1 input1, TIn2 input2, ITransformationEngineContext context, TransformationRuleBase<TIn1, TIn2, TOut> startRule) where TIn1 : class where TIn2 : class where TOut : class

Parameters

input1 TIn1

The first input parameter

input2 TIn2

The second input parameter

context ITransformationEngineContext

The context that should be used (must not be null)

startRule TransformationRuleBase<TIn1, TIn2, TOut>

The rule that should be started with. If this is null, an applicable rule is found.

Returns

TOut

The output from the transformation

Type Parameters

TIn1

The type of the first input argument

TIn2

The type of the second input argument

TOut

The desired output type

Transform<TIn1, TIn2, TOut>(TIn1, TIn2, Transformation)

Transforms the input arguments into an output using the provided transformation

public static TOut Transform<TIn1, TIn2, TOut>(TIn1 input1, TIn2 input2, Transformation transformation) where TIn1 : class where TIn2 : class where TOut : class

Parameters

input1 TIn1

The first input parameter

input2 TIn2

The second input parameter

transformation Transformation

The transformation that shall be used for this operation (must not be null, but can be uninitialized)

Returns

TOut

The output from the transformation

Type Parameters

TIn1

The type of the first input argument

TIn2

The type of the second input argument

TOut

The desired output type