Table of Contents

Class ParsedExpressionBinaryOperator<TLeftArg, TRightArg>

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

Represents a binary operator construct.

public abstract class ParsedExpressionBinaryOperator<TLeftArg, TRightArg> : ParsedExpressionTypedBinaryOperator

Type Parameters

TLeftArg

Left argument's type.

TRightArg

Right argument's type.

Inheritance
ParsedExpressionBinaryOperator<TLeftArg, TRightArg>
Derived
Inherited Members

Constructors

ParsedExpressionBinaryOperator()

protected ParsedExpressionBinaryOperator()

Methods

TryGetLeftArgumentValue(ConstantExpression, out TLeftArg)

Attempts to extract a constant value of a left argument.

protected static bool TryGetLeftArgumentValue(ConstantExpression expression, out TLeftArg result)

Parameters

expression ConstantExpression

Source constant expression.

result TLeftArg

out parameter that returns the underlying value.

Returns

bool

true if value was extracted successfully, otherwise false.

TryGetRightArgumentValue(ConstantExpression, out TRightArg)

Attempts to extract a constant value of a right argument.

protected static bool TryGetRightArgumentValue(ConstantExpression expression, out TRightArg result)

Parameters

expression ConstantExpression

Source constant expression.

result TRightArg

out parameter that returns the underlying value.

Returns

bool

true if value was extracted successfully, otherwise false.