Skip to content

M_RailwaySharp_ErrorHandling_Trial_MergeMessages__2

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

Trial.MergeMessages(TSuccess, TMessage) Method

Appends the given messages with the messages in the given result.

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

Syntax

C#

public static Result<TSuccess, TMessage> MergeMessages<TSuccess, TMessage>(
	IEnumerable<TMessage> messages,
	Result<TSuccess, TMessage> result
)

VB

Public Shared Function MergeMessages(Of TSuccess, TMessage) ( 
	messages As IEnumerable(Of TMessage),
	result As Result(Of TSuccess, TMessage)
) As Result(Of TSuccess, TMessage)

C++

public:
generic<typename TSuccess, typename TMessage>
static Result<TSuccess, TMessage>^ MergeMessages(
	IEnumerable<TMessage>^ messages, 
	Result<TSuccess, TMessage>^ result
)

F#

static member MergeMessages : 
        messages : IEnumerable<'TMessage> * 
        result : Result<'TSuccess, 'TMessage> -> Result<'TSuccess, 'TMessage> 

Parameters

 

messages
Type: System.Collections.Generic.IEnumerable(TMessage)
result
Type: RailwaySharp.ErrorHandling.Result(TSuccess, TMessage)

Type Parameters

 

TSuccess
TMessage

Return Value

Type: Result(TSuccess, TMessage)

See Also

Reference

Trial Class
RailwaySharp.ErrorHandling Namespace

Clone this wiki locally