Test additional content header

EvaluationScopeEvaluateTCase, TValue(FuncSwitchExpressionTCase, TValueResultEvaluator, String) Method

Evaluates switch expression and captures it's values as arguments.

Definition

Namespace: Fluent.Calculations.Primitives
Assembly: Fluent.Calculations.Primitives (in Fluent.Calculations.Primitives.dll) Version: 1.1.0-aplha
public TValue Evaluate<TCase, TValue>(
	Func<SwitchExpressionT, TReturnResultEvaluator> getResultEvaluatorFunc,
	string name = "NaN"
)
where TCase : struct, new()
where TValue : class, new(), IValueProvider

Parameters

getResultEvaluatorFunc  FuncSwitchExpressionT, TReturnResultEvaluator
Expression representing switch expression.
name  String  (Optional)
Name of evauation.

Type Parameters

TCase
Type of case and evaluated value.
TValue
Case result return type.

Return Value

TValue
Switch expression case result.

Implements

IEvaluationScopeEvaluateTCase, TValue(FuncSwitchExpressionTCase, TValueResultEvaluator, String)

Remarks

Learn more about Option type and SwitchExpression.

See Also