Interface IResultBase
Non-generic contract for a result — exposes status flags and reason lists without requiring knowledge of the success value type. Useful for middleware, logging pipelines, and generic result-handling utilities.
public interface IResultBase
- Extension Methods
Properties
Errors
Gets the error reasons. Empty when IsSuccess is true.
ImmutableList<IError> Errors { get; }
Property Value
IsFailure
Gets a value indicating whether this result represents a failed outcome.
bool IsFailure { get; }
Property Value
IsSuccess
Gets a value indicating whether this result represents a successful outcome.
bool IsSuccess { get; }
Property Value
Reasons
Gets all reasons (both errors and successes) attached to this result.
ImmutableList<IReason> Reasons { get; }
Property Value
Successes
Gets the success reasons. Empty when IsFailure is true.
ImmutableList<ISuccess> Successes { get; }