Table of Contents

ConditionalValue Constructor

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/ConditionalValue.cs

ConditionalValue(bool, TResult, Exception)

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

protected ConditionalValue(bool succeeded, TResult result, Exception failure)

Parameters

succeeded bool

Indicates whether the operation was successful (an instance of TResult has been created) or not.

result TResult

The value returned from the operation; otherwise the default value for TResult of the result parameter.

failure Exception

The Exception to associate with a faulted operation.