Class ResultFuncExtensions
Extensions for Func<T, TResult>.
public static class ResultFuncExtensions
- Inheritance
-
ResultFuncExtensions
- Inherited Members
Methods
ToResultFunc<T>(Action<T>)
Converts an Action<T> to a Func<T, TResult>.
public static Func<T, Result> ToResultFunc<T>(this Action<T> action)
Parameters
Returns
- Func<T, Result>
A Func<T, TResult> that invokes the action and returns a successful result.
Type Parameters
TThe type of the parameter for the action.