M_RailwaySharp_ErrorHandling_ResultExtensions_SucceededWith__2 - adutton/commandline GitHub Wiki
Returns the result or fails if the result was an error.
Namespace: RailwaySharp.ErrorHandling
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0
C#
public static TSuccess SucceededWith<TSuccess, TMessage>(
this Result<TSuccess, TMessage> result
)VB
<ExtensionAttribute>
Public Shared Function SucceededWith(Of TSuccess, TMessage) (
result As Result(Of TSuccess, TMessage)
) As TSuccessC++
public:
[ExtensionAttribute]
generic<typename TSuccess, typename TMessage>
static TSuccess SucceededWith(
Result<TSuccess, TMessage>^ result
)F#
[<ExtensionAttribute>]
static member SucceededWith :
result : Result<'TSuccess, 'TMessage> -> 'TSuccess
- result
- Type: RailwaySharp.ErrorHandling.Result(TSuccess, TMessage)
- TSuccess
- TMessage
Type: TSuccess
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).