Class Result<T, TError>
- Namespace
- Dynamicweb.Core
- Assembly
- Dynamicweb.Core.dll
public class Result<T, TError> where TError : struct
Type Parameters
TTErrorThe Generic type TError must be an Enum type
- Inheritance
-
Result<T, TError>
- Inherited Members
Constructors
Result(T?, bool, TError)
protected Result(T? value, bool isSuccess, TError errorType)
Parameters
valueTisSuccessboolerrorTypeTErrorAn enum value indicating the reason for the failure
Properties
ErrorType
Exposes the error type.
public TError? ErrorType { get; }
Property Value
- TError?