Skip to content

M_CommandLine_Infrastructure_ResultExtensions_SuccessfulMessages__2

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

ResultExtensions.SuccessfulMessages(TSuccess, TMessage) Method

Namespace: CommandLine.Infrastructure
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public static IEnumerable<TMessage> SuccessfulMessages<TSuccess, TMessage>(
	this Result<TSuccess, TMessage> result
)

VB

<ExtensionAttribute>
Public Shared Function SuccessfulMessages(Of TSuccess, TMessage) ( 
	result As Result(Of TSuccess, TMessage)
) As IEnumerable(Of TMessage)

C++

public:
[ExtensionAttribute]
generic<typename TSuccess, typename TMessage>
static IEnumerable<TMessage>^ SuccessfulMessages(
	Result<TSuccess, TMessage>^ result
)

F#

[<ExtensionAttribute>]
static member SuccessfulMessages : 
        result : Result<'TSuccess, 'TMessage> -> IEnumerable<'TMessage> 

Parameters

 

result
Type: RailwaySharp.ErrorHandling.Result(TSuccess, TMessage)

Type Parameters

 

TSuccess
TMessage

Return Value

Type: IEnumerable(TMessage)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Result(TSuccess, TMessage). When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

ResultExtensions Class
CommandLine.Infrastructure Namespace

Clone this wiki locally