Test additional content header

SwitchExpressionT, TReturnReturnBuilderReturn(FuncTReturn, String) Method

Define a function that returns IValue as a result of case

Definition

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

Parameters

returnValueFunc  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, TReturnCaseBuilder
Next case builder

See Also