public bool Equals(Result <TSuccess, TFailure> other) { if (isSuccess != other.isSuccess) { return(false); } if (isSuccess) { return(SuccessComparer.Equals(success, other.success)); } return(FailureComparer.Equals(failure, other.failure)); }
public override int GetHashCode() => HashCode.Combine(EqualityContract, FailureComparer.GetHashCode(failure));
public bool Equals(FailureBuilder <TFailure> other) => FailureComparer.Equals(failure, other.failure);