Test additional content header

IEvaluationScopeEvaluateTCase, 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
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.

Remarks

Learn more about Option type and SwitchExpression.

See Also