Show / Hide Table of Contents

Class GeneralTransformationRule<TIn>

Defines a transformation rule of a transformation that has one input argument

Inheritance
object
GeneralTransformationRule
GeneralTransformationRule<TIn>
InPlaceTransformationRuleBase<T>
TransformationRuleBase<TIn, TOut>
Inherited Members
GeneralTransformationRule.RegisterDependencies()
GeneralTransformationRule.OutputType
GeneralTransformationRule.CreateComputation(object[], IComputationContext)
GeneralTransformationRule.NeedDependenciesForOutputCreation
GeneralTransformationRule.Transformation
GeneralTransformationRule.Dependencies
GeneralTransformationRule.OutputDelayLevel
GeneralTransformationRule.TransformationDelayLevel
GeneralTransformationRule.IsUnique
GeneralTransformationRule.BaseRule
GeneralTransformationRule.IsInstantiating(Computation)
GeneralTransformationRule.HasCompliantInput(Computation)
GeneralTransformationRule.Require(GeneralTransformationRule)
GeneralTransformationRule.Call(GeneralTransformationRule)
GeneralTransformationRule.MarkInstantiatingFor(GeneralTransformationRule)
GeneralTransformationRule.MarkInstantiatingFor(GeneralTransformationRule, Predicate<Computation>)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: NMF.Transformations
Assembly: NMF.Transformations.dll
Syntax
public abstract class GeneralTransformationRule<TIn> : GeneralTransformationRule
Type Parameters
Name Description
TIn

The type of the input argument

Properties

| Edit this page View Source

InputType

Gets the type signature of the input arguments of this transformation rule

Declaration
public override sealed Type[] InputType { get; }
Property Value
Type Description
Type[]
Overrides
GeneralTransformationRule.InputType

Methods

| Edit this page View Source

Call(GeneralTransformationRule, Func<TIn, object[]>)

Calls the transformation rule with the given type after the current transformation rule

Declaration
public ITransformationRuleDependency Call(GeneralTransformationRule rule, Func<TIn, object[]> selector)
Parameters
Type Name Description
GeneralTransformationRule rule

The dependent transformation rule

Func<TIn, object[]> selector

A method that selects the input for the dependent transformation rule

Returns
Type Description
ITransformationRuleDependency
Exceptions
Type Condition
ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallByType<TRequiredInput>(Func<TIn, TRequiredInput>)

Calls all transformation rules that transform items with the input type after the current transformation rule

Declaration
public void CallByType<TRequiredInput>(Func<TIn, TRequiredInput> selector)
Parameters
Type Name Description
Func<TIn, TRequiredInput> selector

A method that selects the input for the dependent transformations

Type Parameters
Name Description
TRequiredInput

The input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallByType<TRequiredInput1, TRequiredInput2>(Func<TIn, TRequiredInput1>, Func<TIn, TRequiredInput2>)

Calls all transformation rules that transform items with the input type after the current transformation rule

Declaration
public void CallByType<TRequiredInput1, TRequiredInput2>(Func<TIn, TRequiredInput1> selector1, Func<TIn, TRequiredInput2> selector2)
Parameters
Type Name Description
Func<TIn, TRequiredInput1> selector1

A method that selects the first input for the dependent transformations

Func<TIn, TRequiredInput2> selector2

A method that selects the second input for the dependent transformations

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector1 parameter is passed a null instance

ArgumentNullException

An ArgumentNullException is thrown if the selector2 parameter is passed a null instance

| Edit this page View Source

CallFor(GeneralTransformationRule, Func<Computation, TIn>, bool)

Specify that the current transformation rule is called whenenver objects are transformed with the given transformation rule

Declaration
public void CallFor(GeneralTransformationRule rule, Func<Computation, TIn> selector, bool needOutput)
Parameters
Type Name Description
GeneralTransformationRule rule

The transformation rule that act as trigger for the current transformation rule

Func<Computation, TIn> selector

A method that selects the input parameters for the current transformation rule

bool needOutput

True, if the call must be made after the output of the trigger rule is created, otherwise false

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

ArgumentNullException

An ArgumentNullException is thrown if the rule parameter is passed a null instance

| Edit this page View Source

CallFor(GeneralTransformationRule, Func<Computation, TIn>, Predicate<Computation>, bool)

Specify that the current transformation rule is called whenenver objects are transformed with the given transformation rule

Declaration
public void CallFor(GeneralTransformationRule rule, Func<Computation, TIn> selector, Predicate<Computation> filter, bool needOutput)
Parameters
Type Name Description
GeneralTransformationRule rule

The transformation rule that act as trigger for the current transformation rule

Func<Computation, TIn> selector

A method that selects the input parameters for the current transformation rule

Predicate<Computation> filter

A method to filter the objects where the reversed dependency is applicable

bool needOutput

True, if the call must be made after the output of the trigger rule is created, otherwise false

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

ArgumentNullException

An ArgumentNullException is thrown if the rule parameter is passed a null instance

| Edit this page View Source

CallForEach(GeneralTransformationRule, Func<Computation, IEnumerable<TIn>>, bool)

Specify that the current transformation rule is called whenenver the given types are transformed multiple times

Declaration
public void CallForEach(GeneralTransformationRule rule, Func<Computation, IEnumerable<TIn>> selector, bool needOutput)
Parameters
Type Name Description
GeneralTransformationRule rule

The transformation rule acting as trigger for the current transformation rule

Func<Computation, IEnumerable<TIn>> selector

A method that selects the input parameters for the current transformation rule

bool needOutput

True, if the call must be made after the output of the trigger rule is created, otherwise false

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the rule parameter is passed a null instance

ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallForEach(GeneralTransformationRule, Func<Computation, IEnumerable<TIn>>, Predicate<Computation>, bool)

Specify that the current transformation rule is called whenenver the given types are transformed multiple times

Declaration
public void CallForEach(GeneralTransformationRule rule, Func<Computation, IEnumerable<TIn>> selector, Predicate<Computation> filter, bool needOutput)
Parameters
Type Name Description
GeneralTransformationRule rule

The transformation rule acting as trigger for the current transformation rule

Func<Computation, IEnumerable<TIn>> selector

A method that selects the input parameters for the current transformation rule

Predicate<Computation> filter

A method that filters the inputs of the transformation rule acting as trigger

bool needOutput

True, if the call must be made after the output of the trigger rule is created, otherwise false

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the rule parameter is passed a null instance

ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallForEachOutputSensitive<TRequiredInput, TRequiredOutput>(TransformationRuleBase<TRequiredInput, TRequiredOutput>, Func<TRequiredInput, TRequiredOutput, IEnumerable<TIn>>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made This version calls this transformation rule for a whol collection of input objects

Declaration
public void CallForEachOutputSensitive<TRequiredInput, TRequiredOutput>(TransformationRuleBase<TRequiredInput, TRequiredOutput> rule, Func<TRequiredInput, TRequiredOutput, IEnumerable<TIn>> selector)
Parameters
Type Name Description
TransformationRuleBase<TRequiredInput, TRequiredOutput> rule

The dependent transformation rule

Func<TRequiredInput, TRequiredOutput, IEnumerable<TIn>> selector

A method that selects the inputs for this transformation rule

Type Parameters
Name Description
TRequiredInput

The input argument type of the source transformation rule

TRequiredOutput

The output type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

| Edit this page View Source

CallForEachOutputSensitive<TRequiredInput, TRequiredOutput>(TransformationRuleBase<TRequiredInput, TRequiredOutput>, Func<TRequiredInput, TRequiredOutput, IEnumerable<TIn>>, Func<TRequiredInput, TRequiredOutput, bool>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made This version calls this transformation rule for a whol collection of input objects

Declaration
public void CallForEachOutputSensitive<TRequiredInput, TRequiredOutput>(TransformationRuleBase<TRequiredInput, TRequiredOutput> rule, Func<TRequiredInput, TRequiredOutput, IEnumerable<TIn>> selector, Func<TRequiredInput, TRequiredOutput, bool> filter)
Parameters
Type Name Description
TransformationRuleBase<TRequiredInput, TRequiredOutput> rule

The dependent transformation rule

Func<TRequiredInput, TRequiredOutput, IEnumerable<TIn>> selector

A method that selects the input for this transformation rule

Func<TRequiredInput, TRequiredOutput, bool> filter

A method that filters the applicable instances of S

Type Parameters
Name Description
TRequiredInput

The input argument type of the source transformation rule

TRequiredOutput

The output type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

| Edit this page View Source

CallForEachOutputSensitive<TRequiredInput, TRequiredOutput>(Func<TRequiredInput, TRequiredOutput, IEnumerable<TIn>>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made This version calls this transformation rule for a whole collection of input objects

Declaration
public void CallForEachOutputSensitive<TRequiredInput, TRequiredOutput>(Func<TRequiredInput, TRequiredOutput, IEnumerable<TIn>> selector)
Parameters
Type Name Description
Func<TRequiredInput, TRequiredOutput, IEnumerable<TIn>> selector

A method that selects the inputs for this transformation rule

Type Parameters
Name Description
TRequiredInput

The input argument type of the source transformation rule

TRequiredOutput

The output type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallForEachOutputSensitive<TRequiredInput, TRequiredOutput>(Func<TRequiredInput, TRequiredOutput, IEnumerable<TIn>>, Func<TRequiredInput, TRequiredOutput, bool>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made This version calls this transformation rule for a whol collection of input objects

Declaration
public void CallForEachOutputSensitive<TRequiredInput, TRequiredOutput>(Func<TRequiredInput, TRequiredOutput, IEnumerable<TIn>> selector, Func<TRequiredInput, TRequiredOutput, bool> filter)
Parameters
Type Name Description
Func<TRequiredInput, TRequiredOutput, IEnumerable<TIn>> selector

A method that selects the input for this transformation rule

Func<TRequiredInput, TRequiredOutput, bool> filter

A method that filters the applicable instances of S

Type Parameters
Name Description
TRequiredInput

The input argument type of the source transformation rule

TRequiredOutput

The output type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallForEachOutputSensitive<TRequiredInput1, TRequiredInput2, TRequiredOutput>(TransformationRuleBase<TRequiredInput1, TRequiredInput2, TRequiredOutput>, Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, IEnumerable<TIn>>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made This version calls this transformation rule for a whol collection of input objects

Declaration
public void CallForEachOutputSensitive<TRequiredInput1, TRequiredInput2, TRequiredOutput>(TransformationRuleBase<TRequiredInput1, TRequiredInput2, TRequiredOutput> rule, Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, IEnumerable<TIn>> selector)
Parameters
Type Name Description
TransformationRuleBase<TRequiredInput1, TRequiredInput2, TRequiredOutput> rule

The dependent transformation rule

Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, IEnumerable<TIn>> selector

A method that selects the inputs for this transformation rule

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

TRequiredOutput

The output type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

| Edit this page View Source

CallForEachOutputSensitive<TRequiredInput1, TRequiredInput2, TRequiredOutput>(TransformationRuleBase<TRequiredInput1, TRequiredInput2, TRequiredOutput>, Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, IEnumerable<TIn>>, Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, bool>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made This version calls this transformation rule for a whol collection of input objects

Declaration
public void CallForEachOutputSensitive<TRequiredInput1, TRequiredInput2, TRequiredOutput>(TransformationRuleBase<TRequiredInput1, TRequiredInput2, TRequiredOutput> rule, Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, IEnumerable<TIn>> selector, Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, bool> filter)
Parameters
Type Name Description
TransformationRuleBase<TRequiredInput1, TRequiredInput2, TRequiredOutput> rule

The dependent transformation rule

Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, IEnumerable<TIn>> selector

A method that selects the input for this transformation rule

Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, bool> filter

A method that filters the applicable instances of S

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

TRequiredOutput

The output type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

| Edit this page View Source

CallForEachOutputSensitive<TRequiredInput1, TRequiredInput2, TRequiredOutput>(Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, IEnumerable<TIn>>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made This version calls this transformation rule for a whol collection of input objects

Declaration
public void CallForEachOutputSensitive<TRequiredInput1, TRequiredInput2, TRequiredOutput>(Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, IEnumerable<TIn>> selector)
Parameters
Type Name Description
Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, IEnumerable<TIn>> selector

A method that selects the inputs for this transformation rule

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

TRequiredOutput

The output type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallForEachOutputSensitive<TRequiredInput1, TRequiredInput2, TRequiredOutput>(Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, IEnumerable<TIn>>, Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, bool>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made This version calls this transformation rule for a whol collection of input objects

Declaration
public void CallForEachOutputSensitive<TRequiredInput1, TRequiredInput2, TRequiredOutput>(Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, IEnumerable<TIn>> selector, Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, bool> filter)
Parameters
Type Name Description
Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, IEnumerable<TIn>> selector

A method that selects the input for this transformation rule

Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, bool> filter

A method that filters the applicable instances of S

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

TRequiredOutput

The output type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallForEach<TRequiredInput>(GeneralTransformationRule<TRequiredInput>, Func<TRequiredInput, IEnumerable<TIn>>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made This version calls this transformation rule for a whol collection of input objects

Declaration
public void CallForEach<TRequiredInput>(GeneralTransformationRule<TRequiredInput> rule, Func<TRequiredInput, IEnumerable<TIn>> selector) where TRequiredInput : class
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput> rule

The dependent transformation rule

Func<TRequiredInput, IEnumerable<TIn>> selector

A method that selects the inputs for this transformation rule

Type Parameters
Name Description
TRequiredInput

The input argument type of the source transformation rule

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

| Edit this page View Source

CallForEach<TRequiredInput>(GeneralTransformationRule<TRequiredInput>, Func<TRequiredInput, IEnumerable<TIn>>, Predicate<TRequiredInput>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made This version calls this transformation rule for a whol collection of input objects

Declaration
public void CallForEach<TRequiredInput>(GeneralTransformationRule<TRequiredInput> rule, Func<TRequiredInput, IEnumerable<TIn>> selector, Predicate<TRequiredInput> filter)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput> rule

The dependent transformation rule

Func<TRequiredInput, IEnumerable<TIn>> selector

A method that selects the input for this transformation rule

Predicate<TRequiredInput> filter

A method that filters the applicable instances of S

Type Parameters
Name Description
TRequiredInput

The input argument type of the source transformation rule

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

| Edit this page View Source

CallForEach<TRequiredInput>(Func<TRequiredInput, IEnumerable<TIn>>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made This version calls this transformation rule for a whole collection of input objects

Declaration
public void CallForEach<TRequiredInput>(Func<TRequiredInput, IEnumerable<TIn>> selector)
Parameters
Type Name Description
Func<TRequiredInput, IEnumerable<TIn>> selector

A method that selects the inputs for this transformation rule

Type Parameters
Name Description
TRequiredInput

The input argument type of the source transformation rule

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallForEach<TRequiredInput>(Func<TRequiredInput, IEnumerable<TIn>>, Predicate<TRequiredInput>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made This version calls this transformation rule for a whol collection of input objects

Declaration
public void CallForEach<TRequiredInput>(Func<TRequiredInput, IEnumerable<TIn>> selector, Predicate<TRequiredInput> filter)
Parameters
Type Name Description
Func<TRequiredInput, IEnumerable<TIn>> selector

A method that selects the input for this transformation rule

Predicate<TRequiredInput> filter

A method that filters the applicable instances of S

Type Parameters
Name Description
TRequiredInput

The input argument type of the source transformation rule

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallForEach<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2>, Func<TRequiredInput1, TRequiredInput2, IEnumerable<TIn>>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made This version calls this transformation rule for a whol collection of input objects

Declaration
public void CallForEach<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule, Func<TRequiredInput1, TRequiredInput2, IEnumerable<TIn>> selector)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule

The dependent transformation rule

Func<TRequiredInput1, TRequiredInput2, IEnumerable<TIn>> selector

A method that selects the inputs for this transformation rule

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

| Edit this page View Source

CallForEach<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2>, Func<TRequiredInput1, TRequiredInput2, IEnumerable<TIn>>, Func<TRequiredInput1, TRequiredInput2, bool>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made This version calls this transformation rule for a whol collection of input objects

Declaration
public void CallForEach<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule, Func<TRequiredInput1, TRequiredInput2, IEnumerable<TIn>> selector, Func<TRequiredInput1, TRequiredInput2, bool> filter)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule

The dependent transformation rule

Func<TRequiredInput1, TRequiredInput2, IEnumerable<TIn>> selector

A method that selects the input for this transformation rule

Func<TRequiredInput1, TRequiredInput2, bool> filter

A method that filters the applicable instances of S

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

| Edit this page View Source

CallForEach<TRequiredInput1, TRequiredInput2>(Func<TRequiredInput1, TRequiredInput2, IEnumerable<TIn>>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made This version calls this transformation rule for a whol collection of input objects

Declaration
public void CallForEach<TRequiredInput1, TRequiredInput2>(Func<TRequiredInput1, TRequiredInput2, IEnumerable<TIn>> selector)
Parameters
Type Name Description
Func<TRequiredInput1, TRequiredInput2, IEnumerable<TIn>> selector

A method that selects the inputs for this transformation rule

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallForEach<TRequiredInput1, TRequiredInput2>(Func<TRequiredInput1, TRequiredInput2, IEnumerable<TIn>>, Func<TRequiredInput1, TRequiredInput2, bool>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made This version calls this transformation rule for a whol collection of input objects

Declaration
public void CallForEach<TRequiredInput1, TRequiredInput2>(Func<TRequiredInput1, TRequiredInput2, IEnumerable<TIn>> selector, Func<TRequiredInput1, TRequiredInput2, bool> filter)
Parameters
Type Name Description
Func<TRequiredInput1, TRequiredInput2, IEnumerable<TIn>> selector

A method that selects the input for this transformation rule

Func<TRequiredInput1, TRequiredInput2, bool> filter

A method that filters the applicable instances of S

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallForOutputSensitive<TRequiredInput, TRequiredOutput>(TransformationRuleBase<TRequiredInput, TRequiredOutput>, Func<TRequiredInput, TRequiredOutput, TIn>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made

Declaration
public void CallForOutputSensitive<TRequiredInput, TRequiredOutput>(TransformationRuleBase<TRequiredInput, TRequiredOutput> rule, Func<TRequiredInput, TRequiredOutput, TIn> selector)
Parameters
Type Name Description
TransformationRuleBase<TRequiredInput, TRequiredOutput> rule

The dependent transformation rule

Func<TRequiredInput, TRequiredOutput, TIn> selector

A method that selects the input for this transformation rule

Type Parameters
Name Description
TRequiredInput

The input argument type of the source transformation rule

TRequiredOutput

The output type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

| Edit this page View Source

CallForOutputSensitive<TRequiredInput, TRequiredOutput>(TransformationRuleBase<TRequiredInput, TRequiredOutput>, Func<TRequiredInput, TRequiredOutput, TIn>, Func<TRequiredInput, TRequiredOutput, bool>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made

Declaration
public void CallForOutputSensitive<TRequiredInput, TRequiredOutput>(TransformationRuleBase<TRequiredInput, TRequiredOutput> rule, Func<TRequiredInput, TRequiredOutput, TIn> selector, Func<TRequiredInput, TRequiredOutput, bool> filter)
Parameters
Type Name Description
TransformationRuleBase<TRequiredInput, TRequiredOutput> rule

The dependent transformation rule

Func<TRequiredInput, TRequiredOutput, TIn> selector

A method that selects the input for this transformation rule

Func<TRequiredInput, TRequiredOutput, bool> filter

A method that filters the applicable instances of S

Type Parameters
Name Description
TRequiredInput

The input argument type of the source transformation rule

TRequiredOutput

The output type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

| Edit this page View Source

CallForOutputSensitive<TRequiredInput, TRequiredOutput>(Func<TRequiredInput, TRequiredOutput, TIn>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made

Declaration
public void CallForOutputSensitive<TRequiredInput, TRequiredOutput>(Func<TRequiredInput, TRequiredOutput, TIn> selector)
Parameters
Type Name Description
Func<TRequiredInput, TRequiredOutput, TIn> selector

A method that selects the input for this transformation rule

Type Parameters
Name Description
TRequiredInput

The input argument type of the source transformation rule

TRequiredOutput

The output type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallForOutputSensitive<TRequiredInput, TRequiredOutput>(Func<TRequiredInput, TRequiredOutput, TIn>, Func<TRequiredInput, TRequiredOutput, bool>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made

Declaration
public void CallForOutputSensitive<TRequiredInput, TRequiredOutput>(Func<TRequiredInput, TRequiredOutput, TIn> selector, Func<TRequiredInput, TRequiredOutput, bool> filter)
Parameters
Type Name Description
Func<TRequiredInput, TRequiredOutput, TIn> selector

A method that selects the input for this transformation rule

Func<TRequiredInput, TRequiredOutput, bool> filter

A method that filters the applicable instances of S

Type Parameters
Name Description
TRequiredInput

The input argument type of the source transformation rule

TRequiredOutput

The output type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallForOutputSensitive<TRequiredInput1, TRequiredInput2, TRequiredOutput>(TransformationRuleBase<TRequiredInput1, TRequiredInput2, TRequiredOutput>, Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, TIn>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made

Declaration
public void CallForOutputSensitive<TRequiredInput1, TRequiredInput2, TRequiredOutput>(TransformationRuleBase<TRequiredInput1, TRequiredInput2, TRequiredOutput> rule, Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, TIn> selector)
Parameters
Type Name Description
TransformationRuleBase<TRequiredInput1, TRequiredInput2, TRequiredOutput> rule

The dependent transformation rule

Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, TIn> selector

A method that selects the input for this transformation rule

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

TRequiredOutput

The output type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

| Edit this page View Source

CallForOutputSensitive<TRequiredInput1, TRequiredInput2, TRequiredOutput>(TransformationRuleBase<TRequiredInput1, TRequiredInput2, TRequiredOutput>, Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, TIn>, Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, bool>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made

Declaration
public void CallForOutputSensitive<TRequiredInput1, TRequiredInput2, TRequiredOutput>(TransformationRuleBase<TRequiredInput1, TRequiredInput2, TRequiredOutput> rule, Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, TIn> selector, Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, bool> filter)
Parameters
Type Name Description
TransformationRuleBase<TRequiredInput1, TRequiredInput2, TRequiredOutput> rule

The dependent transformation rule

Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, TIn> selector

A method that selects the input for this transformation rule

Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, bool> filter

A method that filters the applicable instances of S

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

TRequiredOutput

The output type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

| Edit this page View Source

CallForOutputSensitive<TRequiredInput1, TRequiredInput2, TRequiredOutput>(Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, TIn>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made

Declaration
public void CallForOutputSensitive<TRequiredInput1, TRequiredInput2, TRequiredOutput>(Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, TIn> selector)
Parameters
Type Name Description
Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, TIn> selector

A method that selects the input for this transformation rule

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

TRequiredOutput

The output type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallForOutputSensitive<TRequiredInput1, TRequiredInput2, TRequiredOutput>(Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, TIn>, Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, bool>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made

Declaration
public void CallForOutputSensitive<TRequiredInput1, TRequiredInput2, TRequiredOutput>(Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, TIn> selector, Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, bool> filter)
Parameters
Type Name Description
Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, TIn> selector

A method that selects the input for this transformation rule

Func<TRequiredInput1, TRequiredInput2, TRequiredOutput, bool> filter

A method that filters the applicable instances of S

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

TRequiredOutput

The output type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallFor<TRequiredInput>(GeneralTransformationRule<TRequiredInput>, Func<TRequiredInput, TIn>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made

Declaration
public void CallFor<TRequiredInput>(GeneralTransformationRule<TRequiredInput> rule, Func<TRequiredInput, TIn> selector)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput> rule

The dependent transformation rule

Func<TRequiredInput, TIn> selector

A method that selects the input for this transformation rule

Type Parameters
Name Description
TRequiredInput

The input argument type of the source transformation rule

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

| Edit this page View Source

CallFor<TRequiredInput>(GeneralTransformationRule<TRequiredInput>, Func<TRequiredInput, TIn>, Predicate<TRequiredInput>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made

Declaration
public void CallFor<TRequiredInput>(GeneralTransformationRule<TRequiredInput> rule, Func<TRequiredInput, TIn> selector, Predicate<TRequiredInput> filter)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput> rule

The dependent transformation rule

Func<TRequiredInput, TIn> selector

A method that selects the input for this transformation rule

Predicate<TRequiredInput> filter

A method that filters the applicable instances of S

Type Parameters
Name Description
TRequiredInput

The input argument type of the source transformation rule

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

| Edit this page View Source

CallFor<TRequiredInput>(Func<TRequiredInput, TIn>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made

Declaration
public void CallFor<TRequiredInput>(Func<TRequiredInput, TIn> selector)
Parameters
Type Name Description
Func<TRequiredInput, TIn> selector

A method that selects the input for this transformation rule

Type Parameters
Name Description
TRequiredInput

The input argument type of the source transformation rule

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallFor<TRequiredInput>(Func<TRequiredInput, TIn>, Predicate<TRequiredInput>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made

Declaration
public void CallFor<TRequiredInput>(Func<TRequiredInput, TIn> selector, Predicate<TRequiredInput> filter)
Parameters
Type Name Description
Func<TRequiredInput, TIn> selector

A method that selects the input for this transformation rule

Predicate<TRequiredInput> filter

A method that filters the applicable instances of S

Type Parameters
Name Description
TRequiredInput

The input argument type of the source transformation rule

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallFor<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2>, Func<TRequiredInput1, TRequiredInput2, TIn>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made

Declaration
public void CallFor<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule, Func<TRequiredInput1, TRequiredInput2, TIn> selector)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule

The dependent transformation rule

Func<TRequiredInput1, TRequiredInput2, TIn> selector

A method that selects the input for this transformation rule

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

| Edit this page View Source

CallFor<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2>, Func<TRequiredInput1, TRequiredInput2, TIn>, Func<TRequiredInput1, TRequiredInput2, bool>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made

Declaration
public void CallFor<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule, Func<TRequiredInput1, TRequiredInput2, TIn> selector, Func<TRequiredInput1, TRequiredInput2, bool> filter)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule

The dependent transformation rule

Func<TRequiredInput1, TRequiredInput2, TIn> selector

A method that selects the input for this transformation rule

Func<TRequiredInput1, TRequiredInput2, bool> filter

A method that filters the applicable instances of S

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

| Edit this page View Source

CallFor<TRequiredInput1, TRequiredInput2>(Func<TRequiredInput1, TRequiredInput2, TIn>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made

Declaration
public void CallFor<TRequiredInput1, TRequiredInput2>(Func<TRequiredInput1, TRequiredInput2, TIn> selector)
Parameters
Type Name Description
Func<TRequiredInput1, TRequiredInput2, TIn> selector

A method that selects the input for this transformation rule

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallFor<TRequiredInput1, TRequiredInput2>(Func<TRequiredInput1, TRequiredInput2, TIn>, Func<TRequiredInput1, TRequiredInput2, bool>)

Create a call dependency, i.e., let this transformation be called as soon as a transformation with the input type is made

Declaration
public void CallFor<TRequiredInput1, TRequiredInput2>(Func<TRequiredInput1, TRequiredInput2, TIn> selector, Func<TRequiredInput1, TRequiredInput2, bool> filter)
Parameters
Type Name Description
Func<TRequiredInput1, TRequiredInput2, TIn> selector

A method that selects the input for this transformation rule

Func<TRequiredInput1, TRequiredInput2, bool> filter

A method that filters the applicable instances of S

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallMany(GeneralTransformationRule, Func<TIn, IEnumerable<object[]>>)

Calls the transformation rule with the given type with all of the specified inputs after the current transformation rule

Declaration
public ITransformationRuleDependency CallMany(GeneralTransformationRule rule, Func<TIn, IEnumerable<object[]>> selector)
Parameters
Type Name Description
GeneralTransformationRule rule

The dependent transformation rule

Func<TIn, IEnumerable<object[]>> selector

A method that selects the input for the dependent transformation rule

Returns
Type Description
ITransformationRuleDependency
Exceptions
Type Condition
ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallManyByType<TRequiredInput>(Func<TIn, IEnumerable<TRequiredInput>>)

Calls all transformation rules that transform S to T with all of the specified objects after the current transformation rule

Declaration
public void CallManyByType<TRequiredInput>(Func<TIn, IEnumerable<TRequiredInput>> selector)
Parameters
Type Name Description
Func<TIn, IEnumerable<TRequiredInput>> selector

A method that selects the inputs for the dependent transformations

Type Parameters
Name Description
TRequiredInput

The input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallManyByType<TRequiredInput1, TRequiredInput2>(Func<TIn, IEnumerable<Tuple<TRequiredInput1, TRequiredInput2>>>)

Calls all transformation rules that transform S to T with all of the specified objects after the current transformation rule

Declaration
public void CallManyByType<TRequiredInput1, TRequiredInput2>(Func<TIn, IEnumerable<Tuple<TRequiredInput1, TRequiredInput2>>> selector)
Parameters
Type Name Description
Func<TIn, IEnumerable<Tuple<TRequiredInput1, TRequiredInput2>>> selector

A method that selects the inputs for the dependent transformations

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallMany<TRequiredInput>(GeneralTransformationRule<TRequiredInput>, Func<TIn, IEnumerable<TRequiredInput>>)

Calls the transformation rule with the given type with all of the specified inputs after the current transformation rule

Declaration
public ITransformationRuleDependency CallMany<TRequiredInput>(GeneralTransformationRule<TRequiredInput> rule, Func<TIn, IEnumerable<TRequiredInput>> selector)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput> rule

The dependent transformation rule

Func<TIn, IEnumerable<TRequiredInput>> selector

A method that selects the inputs for the dependent transformations

Returns
Type Description
ITransformationRuleDependency
Type Parameters
Name Description
TRequiredInput

The input argument type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the rule parameter is passed a null instance

ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

CallMany<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2>, Func<TIn, IEnumerable<Tuple<TRequiredInput1, TRequiredInput2>>>)

Calls the transformation rule with the given type with all of the specified inputs after the current transformation rule

Declaration
public ITransformationRuleDependency CallMany<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule, Func<TIn, IEnumerable<Tuple<TRequiredInput1, TRequiredInput2>>> selector)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule

The dependent transformation rule

Func<TIn, IEnumerable<Tuple<TRequiredInput1, TRequiredInput2>>> selector

A method that selects the inputs for the dependent transformations

Returns
Type Description
ITransformationRuleDependency
Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

Call<TRequiredInput>(GeneralTransformationRule<TRequiredInput>, Func<TIn, TRequiredInput>)

Calls the transformation rule with the given type after the current transformation rule

Declaration
public ITransformationRuleDependency Call<TRequiredInput>(GeneralTransformationRule<TRequiredInput> rule, Func<TIn, TRequiredInput> selector)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput> rule

The dependent transformation rule

Func<TIn, TRequiredInput> selector

A method that selects the input for the dependent transformations

Returns
Type Description
ITransformationRuleDependency
Type Parameters
Name Description
TRequiredInput

The input argument type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

Call<TRequiredInput>(GeneralTransformationRule<TRequiredInput>, Func<TIn, TRequiredInput>, Predicate<TIn>)

Calls the transformation rule with the given type after the current transformation rule

Declaration
public ITransformationRuleDependency Call<TRequiredInput>(GeneralTransformationRule<TRequiredInput> rule, Func<TIn, TRequiredInput> selector, Predicate<TIn> filter)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput> rule

The dependent transformation rule

Func<TIn, TRequiredInput> selector

A method that selects the input for the dependent transformations

Predicate<TIn> filter

A filter that filters the input arguments that need the specified requirement

Returns
Type Description
ITransformationRuleDependency
Type Parameters
Name Description
TRequiredInput

The input argument type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

Call<TRequiredInput>(GeneralTransformationRule<TRequiredInput>, Predicate<TIn>)

Calls the transformation rule with the given type after the current transformation rule

Declaration
public ITransformationRuleDependency Call<TRequiredInput>(GeneralTransformationRule<TRequiredInput> rule, Predicate<TIn> filter)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput> rule

The dependent transformation rule

Predicate<TIn> filter

A filter that filters the input arguments that need the specified requirement

Returns
Type Description
ITransformationRuleDependency
Type Parameters
Name Description
TRequiredInput

The input argument type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

| Edit this page View Source

Call<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2>, Func<TIn, TRequiredInput1>, Func<TIn, TRequiredInput2>)

Calls the transformation rule with the given type after the current transformation rule

Declaration
public ITransformationRuleDependency Call<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule, Func<TIn, TRequiredInput1> selector1, Func<TIn, TRequiredInput2> selector2)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule

The dependent transformation rule

Func<TIn, TRequiredInput1> selector1

A method that selects the first input for the dependent transformations

Func<TIn, TRequiredInput2> selector2

A method that selects the second input for the dependent transformations

Returns
Type Description
ITransformationRuleDependency
Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

ArgumentNullException

An ArgumentNullException is thrown if the selector1 parameter is passed a null instance

ArgumentNullException

An ArgumentNullException is thrown if the selector2 parameter is passed a null instance

| Edit this page View Source

Call<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2>, Func<TIn, TRequiredInput1>, Func<TIn, TRequiredInput2>, Predicate<TIn>)

Calls the transformation rule with the given type after the current transformation rule

Declaration
public ITransformationRuleDependency Call<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule, Func<TIn, TRequiredInput1> selector1, Func<TIn, TRequiredInput2> selector2, Predicate<TIn> filter)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule

The dependent transformation rule

Func<TIn, TRequiredInput1> selector1

A method that selects the first input for the dependent transformations

Func<TIn, TRequiredInput2> selector2

A method that selects the second input for the dependent transformations

Predicate<TIn> filter

A filter that filters the input arguments that need the specified requirement

Returns
Type Description
ITransformationRuleDependency
Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

ArgumentNullException

An ArgumentNullException is thrown if the selector1 parameter is passed a null instance

ArgumentNullException

An ArgumentNullException is thrown if the selector2 parameter is passed a null instance

| Edit this page View Source

MarkInstantiatingFor(GeneralTransformationRule, Predicate<TIn>)

Marks the current transformation rule instantiating for the specified rule

Declaration
public void MarkInstantiatingFor(GeneralTransformationRule rule, Predicate<TIn> filter)
Parameters
Type Name Description
GeneralTransformationRule rule

The transformation rule

Predicate<TIn> filter

The filter that should filter the inputs where this transformation rule is marked instantiating

| Edit this page View Source

Require(GeneralTransformationRule, Func<TIn, object[]>)

Requires the transformation rule with the given type

Declaration
public ITransformationRuleDependency Require(GeneralTransformationRule rule, Func<TIn, object[]> selector)
Parameters
Type Name Description
GeneralTransformationRule rule

The dependent transformation rule

Func<TIn, object[]> selector

A method that returns the input of the required transformation rule

Returns
Type Description
ITransformationRuleDependency
Exceptions
Type Condition
ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

RequireByType<TRequiredInput>()

Requires all transformation rules that transform items with the input type

Declaration
public void RequireByType<TRequiredInput>()
Type Parameters
Name Description
TRequiredInput

The input argument type of the dependent transformations

Remarks

This version Always takes the input parameter as input for the dependent transformations. Thus, this method will throw an exception, if the types do not match

| Edit this page View Source

RequireByType<TRequiredInput>(Func<TIn, TRequiredInput>)

Requires all transformation rules that transform items with the input type

Declaration
public void RequireByType<TRequiredInput>(Func<TIn, TRequiredInput> selector)
Parameters
Type Name Description
Func<TIn, TRequiredInput> selector

A method that selects the input for the dependent transformations

Type Parameters
Name Description
TRequiredInput

The input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

RequireByType<TRequiredInput1, TRequiredInput2>(Func<TIn, TRequiredInput1>, Func<TIn, TRequiredInput2>)

Requires all transformation rules that transform items with the input type

Declaration
public void RequireByType<TRequiredInput1, TRequiredInput2>(Func<TIn, TRequiredInput1> selector1, Func<TIn, TRequiredInput2> selector2)
Parameters
Type Name Description
Func<TIn, TRequiredInput1> selector1

A method that selects the first input for the dependent transformations

Func<TIn, TRequiredInput2> selector2

A method that selects the second input for the dependent transformations

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector1 parameter is passed a null instance

ArgumentNullException

An ArgumentNullException is thrown if the selector2 parameter is passed a null instance

| Edit this page View Source

RequireMany(GeneralTransformationRule, Func<TIn, IEnumerable<object[]>>)

Requires all transformation rules that transform S to T with all of the specified objects

Declaration
public ITransformationRuleDependency RequireMany(GeneralTransformationRule rule, Func<TIn, IEnumerable<object[]>> selector)
Parameters
Type Name Description
GeneralTransformationRule rule

The dependent transformation rule

Func<TIn, IEnumerable<object[]>> selector

A method that selects the input arguments for the dependent transformation rule

Returns
Type Description
ITransformationRuleDependency
Exceptions
Type Condition
ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

RequireManyByType<TRequiredInput>(Func<TIn, IEnumerable<TRequiredInput>>)

Requires all transformation rules that transform S to T with all of the specified objects

Declaration
public void RequireManyByType<TRequiredInput>(Func<TIn, IEnumerable<TRequiredInput>> selector)
Parameters
Type Name Description
Func<TIn, IEnumerable<TRequiredInput>> selector

A method that selects the inputs for the dependent transformations

Type Parameters
Name Description
TRequiredInput

The input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

RequireManyByType<TRequiredInput1, TRequiredInput2>(Func<TIn, IEnumerable<Tuple<TRequiredInput1, TRequiredInput2>>>)

Requires all transformation rules that transform S to T with all of the specified objects

Declaration
public void RequireManyByType<TRequiredInput1, TRequiredInput2>(Func<TIn, IEnumerable<Tuple<TRequiredInput1, TRequiredInput2>>> selector)
Parameters
Type Name Description
Func<TIn, IEnumerable<Tuple<TRequiredInput1, TRequiredInput2>>> selector

A method that selects the inputs for the dependent transformations

Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

RequireMany<TRequiredInput>(GeneralTransformationRule<TRequiredInput>, Func<TIn, IEnumerable<TRequiredInput>>)

Requires the transformation rule with the given type with all of the specified inputs

Declaration
public ITransformationRuleDependency RequireMany<TRequiredInput>(GeneralTransformationRule<TRequiredInput> rule, Func<TIn, IEnumerable<TRequiredInput>> selector) where TRequiredInput : class
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput> rule

The dependent transformation rule

Func<TIn, IEnumerable<TRequiredInput>> selector

A method that selects the inputs for the dependent transformations

Returns
Type Description
ITransformationRuleDependency
Type Parameters
Name Description
TRequiredInput

The input argument type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

RequireMany<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2>, Func<TIn, IEnumerable<Tuple<TRequiredInput1, TRequiredInput2>>>)

Requires the transformation rule with the given type with all of the specified inputs

Declaration
public ITransformationRuleDependency RequireMany<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule, Func<TIn, IEnumerable<Tuple<TRequiredInput1, TRequiredInput2>>> selector)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule

The dependent transformation rule

Func<TIn, IEnumerable<Tuple<TRequiredInput1, TRequiredInput2>>> selector

A method that selects the inputs for the dependent transformations

Returns
Type Description
ITransformationRuleDependency
Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

Require<TRequiredInput>(GeneralTransformationRule<TRequiredInput>, Func<TIn, TRequiredInput>)

Requires the transformation rule with the given type

Declaration
public ITransformationRuleDependency Require<TRequiredInput>(GeneralTransformationRule<TRequiredInput> rule, Func<TIn, TRequiredInput> selector)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput> rule

The dependent transformation rule

Func<TIn, TRequiredInput> selector

A method that selects the input for the dependent transformations

Returns
Type Description
ITransformationRuleDependency
Type Parameters
Name Description
TRequiredInput

The input argument type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

Require<TRequiredInput>(GeneralTransformationRule<TRequiredInput>, Func<TIn, TRequiredInput>, Predicate<TIn>)

Requires the transformation rule with the given type

Declaration
public ITransformationRuleDependency Require<TRequiredInput>(GeneralTransformationRule<TRequiredInput> rule, Func<TIn, TRequiredInput> selector, Predicate<TIn> filter)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput> rule

The dependent transformation rule

Func<TIn, TRequiredInput> selector

A method that selects the input for the dependent transformations

Predicate<TIn> filter

A filter that filters the input arguments that need the specified requirement

Returns
Type Description
ITransformationRuleDependency
Type Parameters
Name Description
TRequiredInput

The input argument type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

ArgumentNullException

An ArgumentNullException is thrown if the selector parameter is passed a null instance

| Edit this page View Source

Require<TRequiredInput>(GeneralTransformationRule<TRequiredInput>, Predicate<TIn>)

Requires the transformation rule with the given type

Declaration
public ITransformationRuleDependency Require<TRequiredInput>(GeneralTransformationRule<TRequiredInput> rule, Predicate<TIn> filter)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput> rule

The dependent transformation rule

Predicate<TIn> filter

A filter that filters the input arguments that need the specified requirement

Returns
Type Description
ITransformationRuleDependency
Type Parameters
Name Description
TRequiredInput

The input argument type of the dependent transformation

Exceptions
Type Condition
ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

| Edit this page View Source

Require<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2>, Func<TIn, TRequiredInput1>, Func<TIn, TRequiredInput2>)

Requires the transformation rule with the given type

Declaration
public ITransformationRuleDependency Require<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule, Func<TIn, TRequiredInput1> selector1, Func<TIn, TRequiredInput2> selector2)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule

The dependent transformation rule

Func<TIn, TRequiredInput1> selector1

A method that selects the first input for the dependent transformations

Func<TIn, TRequiredInput2> selector2

A method that selects the second input for the dependent transformations

Returns
Type Description
ITransformationRuleDependency
Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

ArgumentNullException

An ArgumentNullException is thrown if the selector1 parameter is passed a null instance

ArgumentNullException

An ArgumentNullException is thrown if the selector2 parameter is passed a null instance

| Edit this page View Source

Require<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2>, Func<TIn, TRequiredInput1>, Func<TIn, TRequiredInput2>, Predicate<TIn>)

Requires the transformation rule with the given type

Declaration
public ITransformationRuleDependency Require<TRequiredInput1, TRequiredInput2>(GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule, Func<TIn, TRequiredInput1> selector1, Func<TIn, TRequiredInput2> selector2, Predicate<TIn> filter)
Parameters
Type Name Description
GeneralTransformationRule<TRequiredInput1, TRequiredInput2> rule

The dependent transformation rule

Func<TIn, TRequiredInput1> selector1

A method that selects the first input for the dependent transformations

Func<TIn, TRequiredInput2> selector2

A method that selects the second input for the dependent transformations

Predicate<TIn> filter

A filter that filters the input arguments that need the specified requirement

Returns
Type Description
ITransformationRuleDependency
Type Parameters
Name Description
TRequiredInput1

The first input argument type of the dependent transformations

TRequiredInput2

The second input argument type of the dependent transformations

Exceptions
Type Condition
ArgumentNullException

This exception is thrown if the rule parameter is passed a null instance.

ArgumentNullException

An ArgumentNullException is thrown if the selector1 parameter is passed a null instance

ArgumentNullException

An ArgumentNullException is thrown if the selector2 parameter is passed a null instance

| Edit this page View Source

Rule<TRule>()

Gets the first rule within the rules associated transformation that has the given rule type

Declaration
public TRule Rule<TRule>() where TRule : GeneralTransformationRule
Returns
Type Description
TRule

The first transformation rule within the associated transformation or null, if there is none.

Type Parameters
Name Description
TRule

The type of the transformation rule that is looked for

| Edit this page View Source

ToString()

Gets the name of the transformation rule

Declaration
public override string ToString()
Returns
Type Description
string

The name of the transformation rule

Overrides
object.ToString()
| Edit this page View Source

TraceInput<TKey>(TraceEntryGroup<TKey, TIn>, Func<TIn, TKey>)

Creates a trace entry for every computation of the current rule for the computation input

Declaration
public void TraceInput<TKey>(TraceEntryGroup<TKey, TIn> traceKey, Func<TIn, TKey> traceSelector) where TKey : class
Parameters
Type Name Description
TraceEntryGroup<TKey, TIn> traceKey

A trace group used as a key for the trace functionality

Func<TIn, TKey> traceSelector

A method that returns the trace key for the input of a computation

Type Parameters
Name Description
TKey

The type that should be used as key for the trace entry

| Edit this page View Source

TraceInput<TKey>(Func<TIn, TKey>)

Creates a trace entry for every computation of the current rule for the computation input

Declaration
public TraceEntryGroup<TKey, TIn> TraceInput<TKey>(Func<TIn, TKey> traceSelector) where TKey : class
Parameters
Type Name Description
Func<TIn, TKey> traceSelector

A method that returns the trace key for the input of a computation

Returns
Type Description
TraceEntryGroup<TKey, TIn>

A trace group that can be used as a key for the trace functionality

Type Parameters
Name Description
TKey

The type that should be used as key for the trace entry

| Edit this page View Source

WithPattern(ITransformationRulePattern<TIn>)

Registers the given pattern for the current transformation rule

Declaration
public void WithPattern(ITransformationRulePattern<TIn> pattern)
Parameters
Type Name Description
ITransformationRulePattern<TIn> pattern

The pattern that should be applied based on the current transformation rule

| Edit this page View Source

WithPattern(Func<ITransformationContext, INotifyEnumerable<TIn>>)

Registers the given incremental pattern for the current transformation rule

Declaration
public void WithPattern(Func<ITransformationContext, INotifyEnumerable<TIn>> patternCreator)
Parameters
Type Name Description
Func<ITransformationContext, INotifyEnumerable<TIn>> patternCreator

The relation pattern that should be applied on the current transformation rule

| Edit this page View Source

WithPattern(Func<ITransformationContext, IEnumerable<TIn>>)

Registers the given static pattern for the current transformation rule

Declaration
public void WithPattern(Func<ITransformationContext, IEnumerable<TIn>> patternCreator)
Parameters
Type Name Description
Func<ITransformationContext, IEnumerable<TIn>> patternCreator

The relation pattern that should be applied on the current transformation rule

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX