InferExprT1, T2, TResult Method (ExpressionFuncT1, T2, TResult) |
Returns an Expression<Func<T1, T2, TResult>>.
Namespace:
Linq.Extras
Assembly:
Linq.Extras (in Linq.Extras.dll) Version: 5.0.0+96a4f4bfed64095342c5df107c1fe1fb95603ee5
Syntaxpublic static Expression<Func<T1, T2, TResult>> Expr<T1, T2, TResult>(
Expression<Func<T1, T2, TResult>> expr
)
Public Shared Function Expr(Of T1, T2, TResult) (
expr As Expression(Of Func(Of T1, T2, TResult))
) As Expression(Of Func(Of T1, T2, TResult))
static member Expr :
expr : Expression<Func<'T1, 'T2, 'TResult>> -> Expression<Func<'T1, 'T2, 'TResult>>
Parameters
- expr
- Type: System.Linq.ExpressionsExpressionFuncT1, T2, TResult
A lambda expression representing the function whose expression tree will be returned.
Type Parameters
- T1
- The type of the first parameter.
- T2
- The type of the second parameter.
- TResult
- The type of the result.
Return Value
Type:
ExpressionFuncT1,
T2,
TResultThe expression passed as parameter.
RemarksThis method just returns its parameter. It's only a helper to take advantage of generic type inference.
See Also