Table of Contents

Class UnsuccessfulValue<TResult>

Namespace
Cuemon
Assembly
Cuemon.Core.dll

Provides a way to indicate a faulted operation. This class cannot be inherited.

public sealed class UnsuccessfulValue<TResult> : ConditionalValue<TResult>

Type Parameters

TResult

The type of the return value of the operation.

Inheritance
UnsuccessfulValue<TResult>
Inherited Members

Constructors

UnsuccessfulValue(TResult)

Initializes a new instance of the UnsuccessfulValue<TResult> class.

public UnsuccessfulValue(TResult result = null)

Parameters

result TResult

The optional value of result.

UnsuccessfulValue(Exception, TResult)

Initializes a new instance of the UnsuccessfulValue<TResult> class.

public UnsuccessfulValue(Exception failure, TResult result = null)

Parameters

failure Exception

The Exception that caused the faulted operation.

result TResult

The optional value of result.

See Also

ConditionalValue<TResult>