Click or drag to resize

InferExprTResult Method (ExpressionFuncTResult)

Returns an Expression<Func<TResult>>.

Namespace:  Linq.Extras
Assembly:  Linq.Extras (in Linq.Extras.dll) Version: 5.0.0+96a4f4bfed64095342c5df107c1fe1fb95603ee5
Syntax
public static Expression<Func<TResult>> Expr<TResult>(
	Expression<Func<TResult>> expr
)

Parameters

expr
Type: System.Linq.ExpressionsExpressionFuncTResult
A lambda expression representing the function whose expression tree will be returned.

Type Parameters

TResult
The type of the result.

Return Value

Type: ExpressionFuncTResult
The expression passed as parameter.
Remarks
This method just returns its parameter. It's only a helper to take advantage of generic type inference.
See Also