 | ObjectExtensionsRemapT Method (T, ExpressionFuncSingle, IEnumerableInt32, IEnumerableSingle) |
Allows you to make some exceptions of an expression value depending on condition values.
Namespace:
SphinxConnector.FluentApi.Util
Assembly:
SphinxConnector (in SphinxConnector.dll) Version: 5.4.1
Syntaxpublic static float Remap<T>(
this T obj,
Expression<Func<float>> expression,
IEnumerable<int> conditionValues,
IEnumerable<float> expressionValues
)
<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 Single
Parameters
- obj
- Type: T
The value to remap. - expression
- Type: System.Linq.ExpressionsExpressionFuncSingle
The expression to use if obj does not match any condition. - conditionValues
- Type: System.Collections.GenericIEnumerableInt32
The values to match against obj. - expressionValues
- Type: System.Collections.GenericIEnumerableSingle
The expression to use if obj matches a value in conditionValues
Type Parameters
- T
- The type of obj
Return Value
Type:
SingleA value from
expressionValues or
expression.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also