Result.failureIf

Constructs a failure result if the condition is true, otherwise constructs a success result with the given value.

  1. Result!T failureIf(bool condition, T value, string error)
    struct Result(T)
    static
    failureIf
    ()
    (,,
    string error
    )
  2. Result!T failureIf(bool condition, string error)

Meta