OkIf(Boolean, String) |
Returns back the Err if this is Err.
Otherwise, returns Ok if okCondition holds; Err if it does not hold.
Especially useful in fluent input validation.
C#
|
OkIf(FuncBoolean, String) | Lazy counterpart of OkIf(Boolean, String) where condition is evaluated only if this is Ok. Returns back the Err if this is Err. Otherwise, returns Ok if lazyOkCondition holds; Err if it does not hold. Especially useful in fluent input validation.C#
|