InferFuncTResult Method (FuncTResult) |
Returns a Func<TResult>.
Namespace:
Linq.Extras
Assembly:
Linq.Extras (in Linq.Extras.dll) Version: 5.0.0+96a4f4bfed64095342c5df107c1fe1fb95603ee5
Syntaxpublic static Func<TResult> Func<TResult>(
Func<TResult> func
)
Public Shared Function Func(Of TResult) (
func As Func(Of TResult)
) As Func(Of TResult)
static member Func :
func : Func<'TResult> -> Func<'TResult>
Parameters
- func
- Type: SystemFuncTResult
A lambda expression representing the function to return.
Type Parameters
- TResult
- The type of the result.
Return Value
Type:
FuncTResultThe function passed as parameter.
RemarksThis method just returns its parameter. It's only a helper to take advantage of generic type inference.
See Also