ConditionalValue Constructor
Definition
ConditionalValue(bool, TResult, Exception)
Initializes a new instance of the ConditionalValue<TResult> class.
protected ConditionalValue(bool succeeded, TResult result, Exception failure)
Parameters
succeededboolIndicates whether the operation was successful (an instance of
TResulthas been created) or not.resultTResultThe value returned from the operation; otherwise the default value for
TResultof theresultparameter.failureExceptionThe Exception to associate with a faulted operation.