Test additional content header

ResultOfWithScopeTValue Method

Provides methods to execute simple ad-hoc calculations.

Definition

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

Parameters

lambdaExpression  ExpressionFuncTValue
Expression to evaluate.
scopeName  String
Scope name, by default calling method name will be captured.
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