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