Table of Contents

Class ParsedExpressionFunction

Namespace
LfrlAnvil.Computable.Expressions.Constructs
Assembly
LfrlAnvil.Computable.Expressions.dll

Represents a function construct.

public class ParsedExpressionFunction
Inheritance
ParsedExpressionFunction
Derived
ParsedExpressionFunction<T1, T2, TResult>
ParsedExpressionFunction<T1, T2, T3, TResult>
ParsedExpressionFunction<T1, T2, T3, T4, TResult>
ParsedExpressionFunction<T1, T2, T3, T4, T5, TResult>
ParsedExpressionFunction<T1, T2, T3, T4, T5, T6, TResult>
ParsedExpressionFunction<T1, T2, T3, T4, T5, T6, T7, TResult>
Inherited Members

Constructors

ParsedExpressionFunction(LambdaExpression, bool)

Creates a new ParsedExpressionFunction instance.

public ParsedExpressionFunction(LambdaExpression lambda, bool inlineIfPossible = true)

Parameters

lambda LambdaExpression

Underlying LambdaExpression.

inlineIfPossible bool

Specifies whether or not the Lambda should be inlined if possible. Equal to true by default.

Exceptions

ArgumentException

When lambda return type is equal to void.

Properties

IsInlined

Specifies whether or not the Lambda will be inlined.

public bool IsInlined { get; }

Property Value

bool

Lambda

Underlying LambdaExpression.

public LambdaExpression Lambda { get; }

Property Value

LambdaExpression

Methods

Create<TReturn>(Expression<Func<TReturn>>)

Creates a new ParsedExpressionFunction<TResult> instance.

[Pure]
public static ParsedExpressionFunction<TReturn> Create<TReturn>(Expression<Func<TReturn>> lambda)

Parameters

lambda Expression<Func<TReturn>>

Underlying LambdaExpression.

Returns

ParsedExpressionFunction<TReturn>

New ParsedExpressionFunction<TResult> instance.

Type Parameters

TReturn

Create<T1, TReturn>(Expression<Func<T1, TReturn>>)

Creates a new ParsedExpressionFunction<T1, TResult> instance.

[Pure]
public static ParsedExpressionFunction<T1, TReturn> Create<T1, TReturn>(Expression<Func<T1, TReturn>> lambda)

Parameters

lambda Expression<Func<T1, TReturn>>

Underlying LambdaExpression.

Returns

ParsedExpressionFunction<T1, TReturn>

New ParsedExpressionFunction<T1, TResult> instance.

Type Parameters

T1
TReturn

Create<T1, T2, TReturn>(Expression<Func<T1, T2, TReturn>>)

[Pure]
public static ParsedExpressionFunction<T1, T2, TReturn> Create<T1, T2, TReturn>(Expression<Func<T1, T2, TReturn>> lambda)

Parameters

lambda Expression<Func<T1, T2, TReturn>>

Underlying LambdaExpression.

Returns

ParsedExpressionFunction<T1, T2, TReturn>

New ParsedExpressionFunction<T1, T2, TResult> instance.

Type Parameters

T1
T2
TReturn

Create<T1, T2, T3, TReturn>(Expression<Func<T1, T2, T3, TReturn>>)

[Pure]
public static ParsedExpressionFunction<T1, T2, T3, TReturn> Create<T1, T2, T3, TReturn>(Expression<Func<T1, T2, T3, TReturn>> lambda)

Parameters

lambda Expression<Func<T1, T2, T3, TReturn>>

Underlying LambdaExpression.

Returns

ParsedExpressionFunction<T1, T2, T3, TReturn>

New ParsedExpressionFunction<T1, T2, T3, TResult> instance.

Type Parameters

T1
T2
T3
TReturn

Create<T1, T2, T3, T4, TReturn>(Expression<Func<T1, T2, T3, T4, TReturn>>)

[Pure]
public static ParsedExpressionFunction<T1, T2, T3, T4, TReturn> Create<T1, T2, T3, T4, TReturn>(Expression<Func<T1, T2, T3, T4, TReturn>> lambda)

Parameters

lambda Expression<Func<T1, T2, T3, T4, TReturn>>

Underlying LambdaExpression.

Returns

ParsedExpressionFunction<T1, T2, T3, T4, TReturn>

New ParsedExpressionFunction<T1, T2, T3, T4, TResult> instance.

Type Parameters

T1
T2
T3
T4
TReturn

Create<T1, T2, T3, T4, T5, TReturn>(Expression<Func<T1, T2, T3, T4, T5, TReturn>>)

[Pure]
public static ParsedExpressionFunction<T1, T2, T3, T4, T5, TReturn> Create<T1, T2, T3, T4, T5, TReturn>(Expression<Func<T1, T2, T3, T4, T5, TReturn>> lambda)

Parameters

lambda Expression<Func<T1, T2, T3, T4, T5, TReturn>>

Underlying LambdaExpression.

Returns

ParsedExpressionFunction<T1, T2, T3, T4, T5, TReturn>

New ParsedExpressionFunction<T1, T2, T3, T4, T5, TResult> instance.

Type Parameters

T1
T2
T3
T4
T5
TReturn

Create<T1, T2, T3, T4, T5, T6, TReturn>(Expression<Func<T1, T2, T3, T4, T5, T6, TReturn>>)

[Pure]
public static ParsedExpressionFunction<T1, T2, T3, T4, T5, T6, TReturn> Create<T1, T2, T3, T4, T5, T6, TReturn>(Expression<Func<T1, T2, T3, T4, T5, T6, TReturn>> lambda)

Parameters

lambda Expression<Func<T1, T2, T3, T4, T5, T6, TReturn>>

Underlying LambdaExpression.

Returns

ParsedExpressionFunction<T1, T2, T3, T4, T5, T6, TReturn>

New ParsedExpressionFunction<T1, T2, T3, T4, T5, T6, TResult> instance.

Type Parameters

T1
T2
T3
T4
T5
T6
TReturn

Create<T1, T2, T3, T4, T5, T6, T7, TReturn>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, TReturn>>)

[Pure]
public static ParsedExpressionFunction<T1, T2, T3, T4, T5, T6, T7, TReturn> Create<T1, T2, T3, T4, T5, T6, T7, TReturn>(Expression<Func<T1, T2, T3, T4, T5, T6, T7, TReturn>> lambda)

Parameters

lambda Expression<Func<T1, T2, T3, T4, T5, T6, T7, TReturn>>

Underlying LambdaExpression.

Returns

ParsedExpressionFunction<T1, T2, T3, T4, T5, T6, T7, TReturn>

New ParsedExpressionFunction<T1, T2, T3, T4, T5, T6, T7, TResult> instance.

Type Parameters

T1
T2
T3
T4
T5
T6
T7
TReturn