Test additional content header

SwitchExpressionT, TReturn Class

Provides support of swithc/case logic building using fluent builder pattern.

Definition

Namespace: Fluent.Calculations.Primitives
Assembly: Fluent.Calculations.Primitives (in Fluent.Calculations.Primitives.dll) Version: 1.1.0-aplha
public static class SwitchExpression<T, TReturn>
where T : struct, new()
where TReturn : class, new(), IValueProvider
Inheritance
Object    SwitchExpressionT, TReturn

Type Parameters

T
Type of condition
TReturn
Result type

Remarks

Use the funtionality provided by this builder instead of native swithc/case statements as it's not supported in Expressions.

Methods

ForSpecifies option variable to check.

See Also