Test additional content header

ResultOfTValue Method

Evaluates expression and captures it's arguments.

Definition

Namespace: Fluent.Calculations.Primitives
Assembly: Fluent.Calculations.Primitives (in Fluent.Calculations.Primitives.dll) Version: 1.1.0-aplha
public static TValue Of<TValue>(
	Expression<Func<TValue>> lambdaExpression,
	string name = "NaN",
	string lambdaExpressionBody = "NaN"
)
where TValue : class, new(), IValueProvider

Parameters

lambdaExpression  ExpressionFuncTValue
Expression to evaluate.
name  String  (Optional)
Name of resulting value, set by default to calling method or property name.
lambdaExpressionBody  String  (Optional)
Expression body, autmatically captured.

Type Parameters

TValue
Type of result.

Return Value

TValue
Evaluation result.

Remarks

Temporary EvaluationScope will be created to evaluate the expression.

See Also