Skip to content

M_RailwaySharp_ErrorHandling_Trial_Warn__2

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

Trial.Warn(TSuccess, TMessage) Method

Wraps a value in a Success and adds a message.

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

Syntax

C#

public static Result<TSuccess, TMessage> Warn<TSuccess, TMessage>(
	TMessage message,
	TSuccess value
)

VB

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

C++

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

F#

static member Warn : 
        message : 'TMessage * 
        value : 'TSuccess -> Result<'TSuccess, 'TMessage> 

Parameters

 

message
Type: TMessage
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