Object ExtensionsRemapT(T, ExpressionFuncSingle, IEnumerableInt 32, IEnumerableSingle) Method
Allows you to make some exceptions of an expression value depending on condition values.
Definition
Namespace: SphinxConnector.FluentApi.Util
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
A value from expressionValues or expression.
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public static float Remap<T>(
this T obj,
Expression<Func<float>> expression,
IEnumerable<int> conditionValues,
IEnumerable<float> expressionValues
)
VB
<ExtensionAttribute>
Public Shared Function Remap(Of T) (
obj As T,
expression As Expression(Of Func(Of Single)),
conditionValues As IEnumerable(Of Integer),
expressionValues As IEnumerable(Of Single)
) As SingleParameters
- obj T
- The value to remap.
- expression ExpressionFuncSingle
- The expression to use if obj does not match any condition.
- conditionValues IEnumerableInt32
- The values to match against obj.
- expressionValues IEnumerableSingle
- The expression to use if obj matches a value in conditionValues
Type Parameters
- T
- The type of obj
Return Value
SingleA value from expressionValues or expression.