Test additional content header

SwitchExpressionT, TReturnCaseBuilderDefault(FuncTReturn, String) Method

Define a function that returns IValue as a default case result.

Definition

Namespace: Fluent.Calculations.Primitives
Assembly: Fluent.Calculations.Primitives (in Fluent.Calculations.Primitives.dll) Version: 1.1.0-aplha
public SwitchExpressionT, TReturnResultEvaluator Default(
	Func<TReturn> defaultValueFun,
	string funcBody = "NaN"
)

Parameters

defaultValueFun  FuncTReturn
Function returning expected result.
funcBody  String  (Optional)
Name of function will be automatically captured as a default. Can be manually overriden.

Return Value

SwitchExpressionT, TReturnResultEvaluator
Result evaluator.

See Also