Table of Contents

Class ResultFuncExtensions

Namespace
Olve.Results
Assembly
Olve.Results.dll

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

action Action<T>

The Action<T> to convert.

Returns

Func<T, Result>

A Func<T, TResult> that invokes the action and returns a successful result.

Type Parameters

T

The type of the parameter for the action.