 | ObjectExtensionsRemapT(T, ExpressionFuncInt32, IEnumerableInt32, IEnumerableInt32) Method |
Allows you to make some exceptions of an expression value depending on condition values.
Namespace: SphinxConnector.FluentApi.UtilAssembly: SphinxConnector (in SphinxConnector.dll) Version: 6.0.0
Syntaxpublic static int Remap<T>(
this T obj,
Expression<Func<int>> expression,
IEnumerable<int> conditionValues,
IEnumerable<int> expressionValues
)
<ExtensionAttribute>
Public Shared Function Remap(Of T) (
obj As T,
expression As Expression(Of Func(Of Integer)),
conditionValues As IEnumerable(Of Integer),
expressionValues As IEnumerable(Of Integer)
) As Integer
Parameters
- obj T
- The value to remap.
- expression ExpressionFuncInt32
- The expression to use if obj does not match any condition.
- conditionValues IEnumerableInt32
- The values to match against obj.
- expressionValues IEnumerableInt32
- The expression to use if obj matches a value in conditionValues
Type Parameters
- T
- The type of obj.
Return Value
Int32A 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
T. 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