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