IEvaluationScopeEvaluateTCase, TValue(FuncSwitchExpressionTCase, TValueResultEvaluator, String) Method
Evaluates switch expression and captures it's values as arguments.
Namespace: Fluent.Calculations.PrimitivesAssembly: 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
- getResultEvaluatorFunc FuncSwitchExpressionT, TReturnResultEvaluator
- Expression representing switch expression.
- name String (Optional)
- Name of evauation.
- TCase
- Type of case and evaluated value.
- TValue
- Case result return type.
TValueSwitch expression case result.
Learn more about Option type and SwitchExpression.