Skip to content

T_RailwaySharp_ErrorHandling_Bad_2

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

Bad(TSuccess, TMessage) Class

Represents the result of a failed computation.

Inheritance Hierarchy

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

Syntax

C#

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

VB

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

C++

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

F#

[<SealedAttribute>]
type Bad<'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 Bad(TSuccess, TMessage) type exposes the following members.

Constructors

 

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

Properties

 

Name Description
Public property Messages
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