Show / Hide Table of Contents

Class IncrementalExtensions

This class contains the extension methods necessary for the NMF Transformations relational extensions

Inheritance
object
IncrementalExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NMF.Transformations.Linq
Assembly: NMF.Transformations.dll
Syntax
public static class IncrementalExtensions

Methods

| Edit this page View Source

SelectMany<T1, T2>(Func<ITransformationContext, INotifyEnumerable<T1>>, Expression<Func<T1, Func<ITransformationContext, IEnumerable<T2>>>>)

Binds the Monad IRelationalSource to child items

Declaration
public static Func<ITransformationContext, INotifyEnumerable<T2>> SelectMany<T1, T2>(this Func<ITransformationContext, INotifyEnumerable<T1>> items, Expression<Func<T1, Func<ITransformationContext, IEnumerable<T2>>>> selector)
Parameters
Type Name Description
Func<ITransformationContext, INotifyEnumerable<T1>> items

The monad instance which children are to be selected

Expression<Func<T1, Func<ITransformationContext, IEnumerable<T2>>>> selector

A method that selects the output

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<T2>>

A monad instance with items selected by the given selector function

Type Parameters
Name Description
T1

The inner type of the outer monad instance

T2

The inner type of the inner monad instance

Remarks

Please see the documentation of the SelectMany extension method and its use with the LINQ-syntax for more details

| Edit this page View Source

SelectMany<T1, T2, T3>(Func<ITransformationContext, INotifyEnumerable<T1>>, Expression<Func<T1, Func<ITransformationContext, IEnumerable<T2>>>>, Expression<Func<T1, T2, T3>>)

Binds the Monad IRelationalSource to child items

Declaration
public static Func<ITransformationContext, INotifyEnumerable<T3>> SelectMany<T1, T2, T3>(this Func<ITransformationContext, INotifyEnumerable<T1>> items, Expression<Func<T1, Func<ITransformationContext, IEnumerable<T2>>>> func, Expression<Func<T1, T2, T3>> selector)
Parameters
Type Name Description
Func<ITransformationContext, INotifyEnumerable<T1>> items

The monad instance which children are to be selected

Expression<Func<T1, Func<ITransformationContext, IEnumerable<T2>>>> func

The operator that should be applied in the bind function

Expression<Func<T1, T2, T3>> selector

A method that selects the output

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<T3>>

A monad instance with items selected by the given selector function

Type Parameters
Name Description
T1

The inner type of the outer monad instance

T2

The inner type of the inner monad instance

T3

The inner type of the return monad

Remarks

Please see the documentation of the SelectMany extension method and its use with the LINQ-syntax for more details

| Edit this page View Source

Select<T1, T2>(Func<ITransformationContext, INotifyEnumerable<T1>>, Expression<Func<T1, T2>>)

Binds the Monad IRelationalSource to child items

Declaration
public static Func<ITransformationContext, INotifyEnumerable<T2>> Select<T1, T2>(this Func<ITransformationContext, INotifyEnumerable<T1>> items, Expression<Func<T1, T2>> selector)
Parameters
Type Name Description
Func<ITransformationContext, INotifyEnumerable<T1>> items

The monad instance whose child items should be selected

Expression<Func<T1, T2>> selector

A method that selects the result items from a source item

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<T2>>

A monad instance of the result type that is based on the source monad instance

Type Parameters
Name Description
T1

The inner type of the input monad instance

T2

The inner type of the result monad instance

| Edit this page View Source

ToComputationSource<TInput>(InPlaceTransformationRuleBase<TInput>)

Creates a new computation source from a transformation rule

Declaration
public static Func<ITransformationContext, INotifyEnumerable<InPlaceComputationWrapper<TInput>>> ToComputationSource<TInput>(this InPlaceTransformationRuleBase<TInput> rule) where TInput : class
Parameters
Type Name Description
InPlaceTransformationRuleBase<TInput> rule

The rule that should be taken as a source of computation objects

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<InPlaceComputationWrapper<TInput>>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput

The type of the input arguments for the transformation rule

| Edit this page View Source

ToComputationSource<TInput>(InPlaceTransformationRuleBase<TInput>, ITransformationContext)

Creates a new computation source from a transformation rule

Declaration
public static INotifyEnumerable<InPlaceComputationWrapper<TInput>> ToComputationSource<TInput>(this InPlaceTransformationRuleBase<TInput> rule, ITransformationContext context) where TInput : class
Parameters
Type Name Description
InPlaceTransformationRuleBase<TInput> rule

The rule that should be taken as a source of computation objects

ITransformationContext context

The context in which the rule is used as source of computations

Returns
Type Description
INotifyEnumerable<InPlaceComputationWrapper<TInput>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput

The type of the input arguments for the transformation rule

| Edit this page View Source

ToComputationSource<TInput>(InPlaceTransformationRuleBase<TInput>, ITransformationContext, bool)

Creates a new computation source from a transformation rule

Declaration
public static INotifyEnumerable<InPlaceComputationWrapper<TInput>> ToComputationSource<TInput>(this InPlaceTransformationRuleBase<TInput> rule, ITransformationContext context, bool allowNull) where TInput : class
Parameters
Type Name Description
InPlaceTransformationRuleBase<TInput> rule

The rule that should be taken as a source of computation objects

ITransformationContext context

The context in which the rule is used as source of computations

bool allowNull

A boolean value indicating whether null values should be allowed

Returns
Type Description
INotifyEnumerable<InPlaceComputationWrapper<TInput>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput

The type of the input arguments for the transformation rule

| Edit this page View Source

ToComputationSource<TInput>(InPlaceTransformationRuleBase<TInput>, ITransformationContext, bool, Func<InPlaceComputationWrapper<TInput>, bool>)

Creates a new computation source from a transformation rule

Declaration
public static INotifyEnumerable<InPlaceComputationWrapper<TInput>> ToComputationSource<TInput>(this InPlaceTransformationRuleBase<TInput> rule, ITransformationContext context, bool allowNull, Func<InPlaceComputationWrapper<TInput>, bool> filter) where TInput : class
Parameters
Type Name Description
InPlaceTransformationRuleBase<TInput> rule

The rule that should be taken as a source of computation objects

ITransformationContext context

The context in which the rule is used as source of computations

bool allowNull

A boolean value indicating whether null values should be allowed

Func<InPlaceComputationWrapper<TInput>, bool> filter

A method or lambda expression to filter the computation objects

Returns
Type Description
INotifyEnumerable<InPlaceComputationWrapper<TInput>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput

The type of the input arguments for the transformation rule

| Edit this page View Source

ToComputationSource<TInput>(InPlaceTransformationRuleBase<TInput>, ITransformationContext, Func<InPlaceComputationWrapper<TInput>, bool>)

Creates a new computation source from a transformation rule

Declaration
public static INotifyEnumerable<InPlaceComputationWrapper<TInput>> ToComputationSource<TInput>(this InPlaceTransformationRuleBase<TInput> rule, ITransformationContext context, Func<InPlaceComputationWrapper<TInput>, bool> filter) where TInput : class
Parameters
Type Name Description
InPlaceTransformationRuleBase<TInput> rule

The rule that should be taken as a source of computation objects

ITransformationContext context

The context in which the rule is used as source of computations

Func<InPlaceComputationWrapper<TInput>, bool> filter

A method or lambda expression to filter the computation objects

Returns
Type Description
INotifyEnumerable<InPlaceComputationWrapper<TInput>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput

The type of the input arguments for the transformation rule

| Edit this page View Source

ToComputationSource<TInput>(InPlaceTransformationRuleBase<TInput>, bool)

Creates a new computation source from a transformation rule

Declaration
public static Func<ITransformationContext, INotifyEnumerable<InPlaceComputationWrapper<TInput>>> ToComputationSource<TInput>(this InPlaceTransformationRuleBase<TInput> rule, bool allowNull) where TInput : class
Parameters
Type Name Description
InPlaceTransformationRuleBase<TInput> rule

The rule that should be taken as a source of computation objects

bool allowNull

A boolean value indicating whether null values should be allowed

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<InPlaceComputationWrapper<TInput>>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput

The type of the input arguments for the transformation rule

| Edit this page View Source

ToComputationSource<TInput>(InPlaceTransformationRuleBase<TInput>, bool, Func<InPlaceComputationWrapper<TInput>, bool>)

Creates a new computation source from a transformation rule

Declaration
public static Func<ITransformationContext, INotifyEnumerable<InPlaceComputationWrapper<TInput>>> ToComputationSource<TInput>(this InPlaceTransformationRuleBase<TInput> rule, bool allowNull, Func<InPlaceComputationWrapper<TInput>, bool> filter) where TInput : class
Parameters
Type Name Description
InPlaceTransformationRuleBase<TInput> rule

The rule that should be taken as a source of computation objects

bool allowNull

A boolean value indicating whether null values should be allowed

Func<InPlaceComputationWrapper<TInput>, bool> filter

A method or lambda expression to filter the computation objects

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<InPlaceComputationWrapper<TInput>>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput

The type of the input arguments for the transformation rule

| Edit this page View Source

ToComputationSource<TInput>(InPlaceTransformationRuleBase<TInput>, Func<InPlaceComputationWrapper<TInput>, bool>)

Creates a new computation source from a transformation rule

Declaration
public static Func<ITransformationContext, INotifyEnumerable<InPlaceComputationWrapper<TInput>>> ToComputationSource<TInput>(this InPlaceTransformationRuleBase<TInput> rule, Func<InPlaceComputationWrapper<TInput>, bool> filter) where TInput : class
Parameters
Type Name Description
InPlaceTransformationRuleBase<TInput> rule

The rule that should be taken as a source of computation objects

Func<InPlaceComputationWrapper<TInput>, bool> filter

A method or lambda expression to filter the computation objects

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<InPlaceComputationWrapper<TInput>>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput

The type of the input arguments for the transformation rule

| Edit this page View Source

ToComputationSource<TInput1, TInput2>(InPlaceTransformationRuleBase<TInput1, TInput2>)

Creates a new computation source from a transformation rule

Declaration
public static Func<ITransformationContext, INotifyEnumerable<InPlaceComputationWrapper<TInput1, TInput2>>> ToComputationSource<TInput1, TInput2>(this InPlaceTransformationRuleBase<TInput1, TInput2> rule) where TInput1 : class where TInput2 : class
Parameters
Type Name Description
InPlaceTransformationRuleBase<TInput1, TInput2> rule

The rule that should be taken as a source of computation objects

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<InPlaceComputationWrapper<TInput1, TInput2>>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput1

The type of the first input arguments for the transformation rule

TInput2

The type of the second input arguments for the transformation rule

| Edit this page View Source

ToComputationSource<TInput1, TInput2>(InPlaceTransformationRuleBase<TInput1, TInput2>, ITransformationContext)

Creates a new computation source from a transformation rule

Declaration
public static INotifyEnumerable<InPlaceComputationWrapper<TInput1, TInput2>> ToComputationSource<TInput1, TInput2>(this InPlaceTransformationRuleBase<TInput1, TInput2> rule, ITransformationContext context) where TInput1 : class where TInput2 : class
Parameters
Type Name Description
InPlaceTransformationRuleBase<TInput1, TInput2> rule

The rule that should be taken as a source of computation objects

ITransformationContext context

The context in which the rule is used as source of computations

Returns
Type Description
INotifyEnumerable<InPlaceComputationWrapper<TInput1, TInput2>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput1

The type of the first input arguments for the transformation rule

TInput2

The type of the second input arguments for the transformation rule

| Edit this page View Source

ToComputationSource<TInput1, TInput2>(InPlaceTransformationRuleBase<TInput1, TInput2>, ITransformationContext, bool)

Creates a new computation source from a transformation rule

Declaration
public static INotifyEnumerable<InPlaceComputationWrapper<TInput1, TInput2>> ToComputationSource<TInput1, TInput2>(this InPlaceTransformationRuleBase<TInput1, TInput2> rule, ITransformationContext context, bool allowNull) where TInput1 : class where TInput2 : class
Parameters
Type Name Description
InPlaceTransformationRuleBase<TInput1, TInput2> rule

The rule that should be taken as a source of computation objects

ITransformationContext context

The context in which the rule is used as source of computations

bool allowNull

A boolean value indicating whether null values should be allowed

Returns
Type Description
INotifyEnumerable<InPlaceComputationWrapper<TInput1, TInput2>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput1

The type of the first input arguments for the transformation rule

TInput2

The type of the second input arguments for the transformation rule

| Edit this page View Source

ToComputationSource<TInput1, TInput2>(InPlaceTransformationRuleBase<TInput1, TInput2>, ITransformationContext, bool, Func<InPlaceComputationWrapper<TInput1, TInput2>, bool>)

Creates a new computation source from a transformation rule

Declaration
public static INotifyEnumerable<InPlaceComputationWrapper<TInput1, TInput2>> ToComputationSource<TInput1, TInput2>(this InPlaceTransformationRuleBase<TInput1, TInput2> rule, ITransformationContext context, bool allowNull, Func<InPlaceComputationWrapper<TInput1, TInput2>, bool> filter) where TInput1 : class where TInput2 : class
Parameters
Type Name Description
InPlaceTransformationRuleBase<TInput1, TInput2> rule

The rule that should be taken as a source of computation objects

ITransformationContext context

The context in which the rule is used as source of computations

bool allowNull

A boolean value indicating whether null values should be allowed

Func<InPlaceComputationWrapper<TInput1, TInput2>, bool> filter

A method or lambda expression to filter the computation objects

Returns
Type Description
INotifyEnumerable<InPlaceComputationWrapper<TInput1, TInput2>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput1

The type of the first input arguments for the transformation rule

TInput2

The type of the second input arguments for the transformation rule

| Edit this page View Source

ToComputationSource<TInput1, TInput2>(InPlaceTransformationRuleBase<TInput1, TInput2>, ITransformationContext, Func<InPlaceComputationWrapper<TInput1, TInput2>, bool>)

Creates a new computation source from a transformation rule

Declaration
public static INotifyEnumerable<InPlaceComputationWrapper<TInput1, TInput2>> ToComputationSource<TInput1, TInput2>(this InPlaceTransformationRuleBase<TInput1, TInput2> rule, ITransformationContext context, Func<InPlaceComputationWrapper<TInput1, TInput2>, bool> filter) where TInput1 : class where TInput2 : class
Parameters
Type Name Description
InPlaceTransformationRuleBase<TInput1, TInput2> rule

The rule that should be taken as a source of computation objects

ITransformationContext context

The context in which the rule is used as source of computations

Func<InPlaceComputationWrapper<TInput1, TInput2>, bool> filter

A method or lambda expression to filter the computation objects

Returns
Type Description
INotifyEnumerable<InPlaceComputationWrapper<TInput1, TInput2>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput1

The type of the first input arguments for the transformation rule

TInput2

The type of the second input arguments for the transformation rule

| Edit this page View Source

ToComputationSource<TInput1, TInput2>(InPlaceTransformationRuleBase<TInput1, TInput2>, bool)

Creates a new computation source from a transformation rule

Declaration
public static Func<ITransformationContext, INotifyEnumerable<InPlaceComputationWrapper<TInput1, TInput2>>> ToComputationSource<TInput1, TInput2>(this InPlaceTransformationRuleBase<TInput1, TInput2> rule, bool allowNull) where TInput1 : class where TInput2 : class
Parameters
Type Name Description
InPlaceTransformationRuleBase<TInput1, TInput2> rule

The rule that should be taken as a source of computation objects

bool allowNull

A boolean value indicating whether null values should be allowed

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<InPlaceComputationWrapper<TInput1, TInput2>>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput1

The type of the first input arguments for the transformation rule

TInput2

The type of the second input arguments for the transformation rule

| Edit this page View Source

ToComputationSource<TInput1, TInput2>(InPlaceTransformationRuleBase<TInput1, TInput2>, bool, Func<InPlaceComputationWrapper<TInput1, TInput2>, bool>)

Creates a new computation source from a transformation rule

Declaration
public static Func<ITransformationContext, INotifyEnumerable<InPlaceComputationWrapper<TInput1, TInput2>>> ToComputationSource<TInput1, TInput2>(this InPlaceTransformationRuleBase<TInput1, TInput2> rule, bool allowNull, Func<InPlaceComputationWrapper<TInput1, TInput2>, bool> filter) where TInput1 : class where TInput2 : class
Parameters
Type Name Description
InPlaceTransformationRuleBase<TInput1, TInput2> rule

The rule that should be taken as a source of computation objects

bool allowNull

A boolean value indicating whether null values should be allowed

Func<InPlaceComputationWrapper<TInput1, TInput2>, bool> filter

A method or lambda expression to filter the computation objects

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<InPlaceComputationWrapper<TInput1, TInput2>>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput1

The type of the first input arguments for the transformation rule

TInput2

The type of the second input arguments for the transformation rule

| Edit this page View Source

ToComputationSource<TInput1, TInput2>(InPlaceTransformationRuleBase<TInput1, TInput2>, Func<InPlaceComputationWrapper<TInput1, TInput2>, bool>)

Creates a new computation source from a transformation rule

Declaration
public static Func<ITransformationContext, INotifyEnumerable<InPlaceComputationWrapper<TInput1, TInput2>>> ToComputationSource<TInput1, TInput2>(this InPlaceTransformationRuleBase<TInput1, TInput2> rule, Func<InPlaceComputationWrapper<TInput1, TInput2>, bool> filter) where TInput1 : class where TInput2 : class
Parameters
Type Name Description
InPlaceTransformationRuleBase<TInput1, TInput2> rule

The rule that should be taken as a source of computation objects

Func<InPlaceComputationWrapper<TInput1, TInput2>, bool> filter

A method or lambda expression to filter the computation objects

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<InPlaceComputationWrapper<TInput1, TInput2>>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput1

The type of the first input arguments for the transformation rule

TInput2

The type of the second input arguments for the transformation rule

| Edit this page View Source

ToComputationSource<TInput, TOutput>(TransformationRuleBase<TInput, TOutput>)

Creates a new computation source from a transformation rule

Declaration
public static Func<ITransformationContext, INotifyEnumerable<TransformationComputationWrapper<TInput, TOutput>>> ToComputationSource<TInput, TOutput>(this TransformationRuleBase<TInput, TOutput> rule) where TInput : class where TOutput : class
Parameters
Type Name Description
TransformationRuleBase<TInput, TOutput> rule

The rule that should be taken as a source of computation objects

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<TransformationComputationWrapper<TInput, TOutput>>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput

The type of the input arguments for the transformation rule

TOutput

The output type of the transformation rule

| Edit this page View Source

ToComputationSource<TInput, TOutput>(TransformationRuleBase<TInput, TOutput>, ITransformationContext)

Creates a new computation source from a transformation rule

Declaration
public static INotifyEnumerable<TransformationComputationWrapper<TInput, TOutput>> ToComputationSource<TInput, TOutput>(this TransformationRuleBase<TInput, TOutput> rule, ITransformationContext context) where TInput : class where TOutput : class
Parameters
Type Name Description
TransformationRuleBase<TInput, TOutput> rule

The rule that should be taken as a source of computation objects

ITransformationContext context

The context in which the rule is used as source of computations

Returns
Type Description
INotifyEnumerable<TransformationComputationWrapper<TInput, TOutput>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput

The type of the input arguments for the transformation rule

TOutput

The output type of the transformation rule

| Edit this page View Source

ToComputationSource<TInput, TOutput>(TransformationRuleBase<TInput, TOutput>, ITransformationContext, bool)

Creates a new computation source from a transformation rule

Declaration
public static INotifyEnumerable<TransformationComputationWrapper<TInput, TOutput>> ToComputationSource<TInput, TOutput>(this TransformationRuleBase<TInput, TOutput> rule, ITransformationContext context, bool allowNull) where TInput : class where TOutput : class
Parameters
Type Name Description
TransformationRuleBase<TInput, TOutput> rule

The rule that should be taken as a source of computation objects

ITransformationContext context

The context in which the rule is used as source of computations

bool allowNull

A boolean value indicating whether null values should be allowed

Returns
Type Description
INotifyEnumerable<TransformationComputationWrapper<TInput, TOutput>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput

The type of the input arguments for the transformation rule

TOutput

The output type of the transformation rule

| Edit this page View Source

ToComputationSource<TInput, TOutput>(TransformationRuleBase<TInput, TOutput>, ITransformationContext, bool, Func<TransformationComputationWrapper<TInput, TOutput>, bool>)

Creates a new computation source from a transformation rule

Declaration
public static INotifyEnumerable<TransformationComputationWrapper<TInput, TOutput>> ToComputationSource<TInput, TOutput>(this TransformationRuleBase<TInput, TOutput> rule, ITransformationContext context, bool allowNull, Func<TransformationComputationWrapper<TInput, TOutput>, bool> filter) where TInput : class where TOutput : class
Parameters
Type Name Description
TransformationRuleBase<TInput, TOutput> rule

The rule that should be taken as a source of computation objects

ITransformationContext context

The context in which the rule is used as source of computations

bool allowNull

A boolean value indicating whether null values should be allowed

Func<TransformationComputationWrapper<TInput, TOutput>, bool> filter

A method or lambda expression to filter the computation objects

Returns
Type Description
INotifyEnumerable<TransformationComputationWrapper<TInput, TOutput>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput

The type of the input arguments for the transformation rule

TOutput

The output type of the transformation rule

| Edit this page View Source

ToComputationSource<TInput, TOutput>(TransformationRuleBase<TInput, TOutput>, ITransformationContext, Func<TransformationComputationWrapper<TInput, TOutput>, bool>)

Creates a new computation source from a transformation rule

Declaration
public static INotifyEnumerable<TransformationComputationWrapper<TInput, TOutput>> ToComputationSource<TInput, TOutput>(this TransformationRuleBase<TInput, TOutput> rule, ITransformationContext context, Func<TransformationComputationWrapper<TInput, TOutput>, bool> filter) where TInput : class where TOutput : class
Parameters
Type Name Description
TransformationRuleBase<TInput, TOutput> rule

The rule that should be taken as a source of computation objects

ITransformationContext context

The context in which the rule is used as source of computations

Func<TransformationComputationWrapper<TInput, TOutput>, bool> filter

A method or lambda expression to filter the computation objects

Returns
Type Description
INotifyEnumerable<TransformationComputationWrapper<TInput, TOutput>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput

The type of the input arguments for the transformation rule

TOutput

The output type of the transformation rule

| Edit this page View Source

ToComputationSource<TInput, TOutput>(TransformationRuleBase<TInput, TOutput>, bool)

Creates a new computation source from a transformation rule

Declaration
public static Func<ITransformationContext, INotifyEnumerable<TransformationComputationWrapper<TInput, TOutput>>> ToComputationSource<TInput, TOutput>(this TransformationRuleBase<TInput, TOutput> rule, bool allowNull) where TInput : class where TOutput : class
Parameters
Type Name Description
TransformationRuleBase<TInput, TOutput> rule

The rule that should be taken as a source of computation objects

bool allowNull

A boolean value indicating whether null values should be allowed

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<TransformationComputationWrapper<TInput, TOutput>>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput

The type of the input arguments for the transformation rule

TOutput

The output type of the transformation rule

| Edit this page View Source

ToComputationSource<TInput, TOutput>(TransformationRuleBase<TInput, TOutput>, bool, Func<TransformationComputationWrapper<TInput, TOutput>, bool>)

Creates a new computation source from a transformation rule

Declaration
public static Func<ITransformationContext, INotifyEnumerable<TransformationComputationWrapper<TInput, TOutput>>> ToComputationSource<TInput, TOutput>(this TransformationRuleBase<TInput, TOutput> rule, bool allowNull, Func<TransformationComputationWrapper<TInput, TOutput>, bool> filter) where TInput : class where TOutput : class
Parameters
Type Name Description
TransformationRuleBase<TInput, TOutput> rule

The rule that should be taken as a source of computation objects

bool allowNull

A boolean value indicating whether null values should be allowed

Func<TransformationComputationWrapper<TInput, TOutput>, bool> filter

A method or lambda expression to filter the computation objects

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<TransformationComputationWrapper<TInput, TOutput>>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput

The type of the input arguments for the transformation rule

TOutput

The output type of the transformation rule

| Edit this page View Source

ToComputationSource<TInput, TOutput>(TransformationRuleBase<TInput, TOutput>, Func<TransformationComputationWrapper<TInput, TOutput>, bool>)

Creates a new computation source from a transformation rule

Declaration
public static Func<ITransformationContext, INotifyEnumerable<TransformationComputationWrapper<TInput, TOutput>>> ToComputationSource<TInput, TOutput>(this TransformationRuleBase<TInput, TOutput> rule, Func<TransformationComputationWrapper<TInput, TOutput>, bool> filter) where TInput : class where TOutput : class
Parameters
Type Name Description
TransformationRuleBase<TInput, TOutput> rule

The rule that should be taken as a source of computation objects

Func<TransformationComputationWrapper<TInput, TOutput>, bool> filter

A method or lambda expression to filter the computation objects

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<TransformationComputationWrapper<TInput, TOutput>>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput

The type of the input arguments for the transformation rule

TOutput

The output type of the transformation rule

| Edit this page View Source

ToComputationSource<TInput1, TInput2, TOutput>(TransformationRuleBase<TInput1, TInput2, TOutput>)

Creates a new computation source from a transformation rule

Declaration
public static Func<ITransformationContext, INotifyEnumerable<TransformationComputationWrapper<TInput1, TInput2, TOutput>>> ToComputationSource<TInput1, TInput2, TOutput>(this TransformationRuleBase<TInput1, TInput2, TOutput> rule) where TInput1 : class where TInput2 : class where TOutput : class
Parameters
Type Name Description
TransformationRuleBase<TInput1, TInput2, TOutput> rule

The rule that should be taken as a source of computation objects

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<TransformationComputationWrapper<TInput1, TInput2, TOutput>>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput1

The type of the first input arguments for the transformation rule

TInput2

The type of the second input arguments for the transformation rule

TOutput

The output type of the transformation rule

| Edit this page View Source

ToComputationSource<TInput1, TInput2, TOutput>(TransformationRuleBase<TInput1, TInput2, TOutput>, ITransformationContext)

Creates a new computation source from a transformation rule

Declaration
public static INotifyEnumerable<TransformationComputationWrapper<TInput1, TInput2, TOutput>> ToComputationSource<TInput1, TInput2, TOutput>(this TransformationRuleBase<TInput1, TInput2, TOutput> rule, ITransformationContext context) where TInput1 : class where TInput2 : class where TOutput : class
Parameters
Type Name Description
TransformationRuleBase<TInput1, TInput2, TOutput> rule

The rule that should be taken as a source of computation objects

ITransformationContext context

The context in which the rule is used as source of computations

Returns
Type Description
INotifyEnumerable<TransformationComputationWrapper<TInput1, TInput2, TOutput>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput1

The type of the first input arguments for the transformation rule

TInput2

The type of the second input arguments for the transformation rule

TOutput

The output type of the transformation rule

| Edit this page View Source

ToComputationSource<TInput1, TInput2, TOutput>(TransformationRuleBase<TInput1, TInput2, TOutput>, ITransformationContext, bool)

Creates a new computation source from a transformation rule

Declaration
public static INotifyEnumerable<TransformationComputationWrapper<TInput1, TInput2, TOutput>> ToComputationSource<TInput1, TInput2, TOutput>(this TransformationRuleBase<TInput1, TInput2, TOutput> rule, ITransformationContext context, bool allowNull) where TInput1 : class where TInput2 : class where TOutput : class
Parameters
Type Name Description
TransformationRuleBase<TInput1, TInput2, TOutput> rule

The rule that should be taken as a source of computation objects

ITransformationContext context

The context in which the rule is used as source of computations

bool allowNull

A boolean value indicating whether null values should be allowed

Returns
Type Description
INotifyEnumerable<TransformationComputationWrapper<TInput1, TInput2, TOutput>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput1

The type of the first input arguments for the transformation rule

TInput2

The type of the second input arguments for the transformation rule

TOutput

The output type of the transformation rule

| Edit this page View Source

ToComputationSource<TInput1, TInput2, TOutput>(TransformationRuleBase<TInput1, TInput2, TOutput>, ITransformationContext, bool, Func<TransformationComputationWrapper<TInput1, TInput2, TOutput>, bool>)

Creates a new computation source from a transformation rule

Declaration
public static INotifyEnumerable<TransformationComputationWrapper<TInput1, TInput2, TOutput>> ToComputationSource<TInput1, TInput2, TOutput>(this TransformationRuleBase<TInput1, TInput2, TOutput> rule, ITransformationContext context, bool allowNull, Func<TransformationComputationWrapper<TInput1, TInput2, TOutput>, bool> filter) where TInput1 : class where TInput2 : class where TOutput : class
Parameters
Type Name Description
TransformationRuleBase<TInput1, TInput2, TOutput> rule

The rule that should be taken as a source of computation objects

ITransformationContext context

The context in which the rule is used as source of computations

bool allowNull

A boolean value indicating whether null values should be allowed

Func<TransformationComputationWrapper<TInput1, TInput2, TOutput>, bool> filter

A method or lambda expression to filter the computation objects

Returns
Type Description
INotifyEnumerable<TransformationComputationWrapper<TInput1, TInput2, TOutput>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput1

The type of the first input arguments for the transformation rule

TInput2

The type of the second input arguments for the transformation rule

TOutput

The output type of the transformation rule

| Edit this page View Source

ToComputationSource<TInput1, TInput2, TOutput>(TransformationRuleBase<TInput1, TInput2, TOutput>, ITransformationContext, Func<TransformationComputationWrapper<TInput1, TInput2, TOutput>, bool>)

Creates a new computation source from a transformation rule

Declaration
public static INotifyEnumerable<TransformationComputationWrapper<TInput1, TInput2, TOutput>> ToComputationSource<TInput1, TInput2, TOutput>(this TransformationRuleBase<TInput1, TInput2, TOutput> rule, ITransformationContext context, Func<TransformationComputationWrapper<TInput1, TInput2, TOutput>, bool> filter) where TInput1 : class where TInput2 : class where TOutput : class
Parameters
Type Name Description
TransformationRuleBase<TInput1, TInput2, TOutput> rule

The rule that should be taken as a source of computation objects

ITransformationContext context

The context in which the rule is used as source of computations

Func<TransformationComputationWrapper<TInput1, TInput2, TOutput>, bool> filter

A method or lambda expression to filter the computation objects

Returns
Type Description
INotifyEnumerable<TransformationComputationWrapper<TInput1, TInput2, TOutput>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput1

The type of the first input arguments for the transformation rule

TInput2

The type of the second input arguments for the transformation rule

TOutput

The output type of the transformation rule

| Edit this page View Source

ToComputationSource<TInput1, TInput2, TOutput>(TransformationRuleBase<TInput1, TInput2, TOutput>, bool)

Creates a new computation source from a transformation rule

Declaration
public static Func<ITransformationContext, INotifyEnumerable<TransformationComputationWrapper<TInput1, TInput2, TOutput>>> ToComputationSource<TInput1, TInput2, TOutput>(this TransformationRuleBase<TInput1, TInput2, TOutput> rule, bool allowNull) where TInput1 : class where TInput2 : class where TOutput : class
Parameters
Type Name Description
TransformationRuleBase<TInput1, TInput2, TOutput> rule

The rule that should be taken as a source of computation objects

bool allowNull

A boolean value indicating whether null values should be allowed

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<TransformationComputationWrapper<TInput1, TInput2, TOutput>>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput1

The type of the first input arguments for the transformation rule

TInput2

The type of the second input arguments for the transformation rule

TOutput

The output type of the transformation rule

| Edit this page View Source

ToComputationSource<TInput1, TInput2, TOutput>(TransformationRuleBase<TInput1, TInput2, TOutput>, bool, Func<TransformationComputationWrapper<TInput1, TInput2, TOutput>, bool>)

Creates a new computation source from a transformation rule

Declaration
public static Func<ITransformationContext, INotifyEnumerable<TransformationComputationWrapper<TInput1, TInput2, TOutput>>> ToComputationSource<TInput1, TInput2, TOutput>(this TransformationRuleBase<TInput1, TInput2, TOutput> rule, bool allowNull, Func<TransformationComputationWrapper<TInput1, TInput2, TOutput>, bool> filter) where TInput1 : class where TInput2 : class where TOutput : class
Parameters
Type Name Description
TransformationRuleBase<TInput1, TInput2, TOutput> rule

The rule that should be taken as a source of computation objects

bool allowNull

A boolean value indicating whether null values should be allowed

Func<TransformationComputationWrapper<TInput1, TInput2, TOutput>, bool> filter

A method or lambda expression to filter the computation objects

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<TransformationComputationWrapper<TInput1, TInput2, TOutput>>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput1

The type of the first input arguments for the transformation rule

TInput2

The type of the second input arguments for the transformation rule

TOutput

The output type of the transformation rule

| Edit this page View Source

ToComputationSource<TInput1, TInput2, TOutput>(TransformationRuleBase<TInput1, TInput2, TOutput>, Func<TransformationComputationWrapper<TInput1, TInput2, TOutput>, bool>)

Creates a new computation source from a transformation rule

Declaration
public static Func<ITransformationContext, INotifyEnumerable<TransformationComputationWrapper<TInput1, TInput2, TOutput>>> ToComputationSource<TInput1, TInput2, TOutput>(this TransformationRuleBase<TInput1, TInput2, TOutput> rule, Func<TransformationComputationWrapper<TInput1, TInput2, TOutput>, bool> filter) where TInput1 : class where TInput2 : class where TOutput : class
Parameters
Type Name Description
TransformationRuleBase<TInput1, TInput2, TOutput> rule

The rule that should be taken as a source of computation objects

Func<TransformationComputationWrapper<TInput1, TInput2, TOutput>, bool> filter

A method or lambda expression to filter the computation objects

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<TransformationComputationWrapper<TInput1, TInput2, TOutput>>>

A source of computations that can further be dealt with

Type Parameters
Name Description
TInput1

The type of the first input arguments for the transformation rule

TInput2

The type of the second input arguments for the transformation rule

TOutput

The output type of the transformation rule

| Edit this page View Source

Where<T>(Func<ITransformationContext, INotifyEnumerable<T>>, Expression<Func<T, bool>>)

Filters the given monad instance with the given filter operator

Declaration
public static Func<ITransformationContext, INotifyEnumerable<T>> Where<T>(this Func<ITransformationContext, INotifyEnumerable<T>> items, Expression<Func<T, bool>> filter)
Parameters
Type Name Description
Func<ITransformationContext, INotifyEnumerable<T>> items

The monad instance that should be filtered

Expression<Func<T, bool>> filter

The filter that should be applied to the monad

Returns
Type Description
Func<ITransformationContext, INotifyEnumerable<T>>

A filtered monad instance

Type Parameters
Name Description
T

The inner type of the monad instance

Remarks

Please see the documentation of the Where extension method and its use with the LINQ-syntax for more details

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