Skip to content

T_RailwaySharp_ErrorHandling_Ok_2

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

Ok(TSuccess, TMessage) Class

Represents the result of a successful computation.

Inheritance Hierarchy

System.Object
  RailwaySharp.ErrorHandling.Result(TSuccess, TMessage)
    RailwaySharp.ErrorHandling.Ok(TSuccess, TMessage)
Namespace: RailwaySharp.ErrorHandling
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

internal sealed class Ok<TSuccess, TMessage> : Result<TSuccess, TMessage>

VB

Friend NotInheritable Class Ok(Of TSuccess, TMessage)
	Inherits Result(Of TSuccess, TMessage)

C++

generic<typename TSuccess, typename TMessage>
internal ref class Ok sealed : public Result<TSuccess, TMessage>

F#

[<SealedAttribute>]
type Ok<'TSuccess, 'TMessage> =  
    class
        inherit Result<'TSuccess, 'TMessage>
    end

Type Parameters

 

TSuccess
Type that models the result of a successful computation.
TMessage
Type that model a message related to a computation.
  The Ok(TSuccess, TMessage) type exposes the following members.

Constructors

 

Name Description
Public method Ok(TSuccess, TMessage) Initializes a new instance of the Ok(TSuccess, TMessage) class
  Back to Top

Properties

 

Name Description
Public property Messages
Public property Success
Public property Tag (Inherited from Result(TSuccess, TMessage).)
  Back to Top

Methods

 

Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString (Inherited from Result(TSuccess, TMessage).)
  Back to Top

Extension Methods

 

Name Description
Private Extension Method IsEmpty (Defined by UnParserExtensions.)
Private Extension Method NormalizeValue (Defined by UnParserExtensions.)
  Back to Top

See Also

Reference

RailwaySharp.ErrorHandling Namespace

Clone this wiki locally