ConditionalValue<TResult> Class
Definition
Represents the base class to support the Try-Parse pattern of an operation that may be asynchronous in nature.
public abstract class ConditionalValue<TResult> : ConditionalValue
Type Parameters
TResultThe type of the return value of the operation.
- Inheritance
-
ConditionalValue<TResult>
- Derived
- Inherited Members
Remarks
Try-Parse pattern: https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/exceptions-and-performance
Constructors
| Name | Description |
|---|---|
| ConditionalValue(bool, TResult, Exception) | Initializes a new instance of the ConditionalValue<TResult> class. |
Properties
| Name | Description |
|---|---|
| Result | Gets the result of the operation. |