Skip to content

T_RailwaySharp_ErrorHandling_Result

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

Result Class

Inheritance Hierarchy

System.Object
  RailwaySharp.ErrorHandling.Result
Namespace: RailwaySharp.ErrorHandling
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

internal static class Result

VB

Friend NotInheritable Class Result

C++

internal ref class Result abstract sealed

F#

[<AbstractClassAttribute>]
[<SealedAttribute>]
type Result =  class end

The Result type exposes the following members.

Methods

 

Name Description
Public methodStatic member FailWith(TSuccess, TMessage)(IEnumerable(TMessage)) Creates a Failure result with the given messages.
Public methodStatic member FailWith(TSuccess, TMessage)(TMessage) Creates a Failure result with the given message.
Public methodStatic member Succeed(TSuccess, TMessage)(TSuccess) Creates a Success result with the given value.
Public methodStatic member Succeed(TSuccess, TMessage)(TSuccess, IEnumerable(TMessage)) Creates a Success result with the given value and the given messages.
Public methodStatic member Succeed(TSuccess, TMessage)(TSuccess, TMessage) Creates a Success result with the given value and the given message.
Public methodStatic member Try(TSuccess) Executes the given function on a given success or captures the failure.
  Back to Top

See Also

Reference

RailwaySharp.ErrorHandling Namespace

Clone this wiki locally