Skip to content

M_RailwaySharp_ErrorHandling_Trial_Pass__2

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

Trial.Pass(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> Pass<TSuccess, TMessage>(
	TSuccess value
)

VB

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

C++

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

F#

static member Pass : 
        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