Microsoft.IdentityModel.Tokens.Experimental.ValidationResult<TResult, TError>
public struct ValidationResult<TResult, TError> : IEquatable<ValidationResult<TResult, TError>> where TError : ValidationError
Represents the result of an validation that can either succeed with a valid result or failed with a specific error.
Gets the error associated with the validation result.
Gets the result associated with the validation result.
Gets a value indicating whether the validation succeeded.
Creates a new instance of ValidationResult<T, U> indicating a successful validation
and containing an object of the associated type.
Creates a new instance of ValidationResult<T, U>
indicating a failed validation and containing error information.
public ValidationResult()
Empty constructor implementation to prevent creating an empty result.
public static bool op_Equality(ValidationResult<TResult, TError> left, ValidationResult<TResult, TError> right)
Creates an ValidationResult<T, U>, successful result implicitly from the value.
Creates an ValidationResult<T, U> result implicitly from the error value.
public static bool op_Inequality(ValidationResult<TResult, TError> left, ValidationResult<TResult, TError> right)
Casts the result to a ValidationResult<T, U>.