SwitchExpressionT, TReturnCaseBuilderDefault(FuncTReturn, String) Method
Define a function that returns
IValue as a default case result.
Namespace: Fluent.Calculations.PrimitivesAssembly: Fluent.Calculations.Primitives (in Fluent.Calculations.Primitives.dll) Version: 1.1.0-aplha
public SwitchExpressionT, TReturnResultEvaluator Default(
Func<TReturn> defaultValueFun,
string funcBody = "NaN"
)
- defaultValueFun FuncTReturn
- Function returning expected result.
- funcBody String (Optional)
- Name of function will be automatically captured as a default. Can be manually overriden.
SwitchExpressionT, TReturnResultEvaluatorResult evaluator.