Skip to content

M_RailwaySharp_ErrorHandling_Trial_Ok__2

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

Trial.Ok(TSuccess, TMessage) Method

Wraps a value in a Success.

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

Syntax

C#

public static Result<TSuccess, TMessage> Ok<TSuccess, TMessage>(
	TSuccess value
)

VB

Public Shared Function Ok(Of TSuccess, TMessage) ( 
	value As TSuccess
) As Result(Of TSuccess, TMessage)

C++

public:
generic<typename TSuccess, typename TMessage>
static Result<TSuccess, TMessage>^ Ok(
	TSuccess value
)

F#

static member Ok : 
        value : 'TSuccess -> Result<'TSuccess, 'TMessage> 

Parameters

 

value
Type: TSuccess

Type Parameters

 

TSuccess
TMessage

Return Value

Type: Result(TSuccess, TMessage)

See Also

Reference

Trial Class
RailwaySharp.ErrorHandling Namespace

Clone this wiki locally