ResTToErrOfTOut Method

Converts the result to Err<TOut> regardless of state of this result:
  • The error message will be carried on when this is of Err variant,
  • A generic error message will be created otherwise.

Definition

Namespace: Orx.Fun.Result
Assembly: Orx.Fun.Result (in Orx.Fun.Result.dll) Version: 1.3.0+344c8bdd6f720ccfb2d8db7c61b76cf02be18f5f
C#
public Res<TOut> ToErrOf<TOut>()

Type Parameters

TOut
Enclosed type of the target result.

Return Value

ResTOut

See Also