You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the following to fill functionality that's missing for my project. What are your thoughts on this and will you take a PR with similar functionality?
staticclassMyResult{publicstatic Result FailIf(boolisFailure,IEnumerable<IError>errors)=>isFailure? Result.Fail(errors): Result.Ok();publicstatic Result FailIfNotEmpty(IEnumerable<IError>errors)=> errors.Any()? Result.Fail(errors): Result.Ok();publicstatic Result FailIfNotEmpty<T>(IEnumerable<T>errors,Func<T,IError>func)=> errors.Any()? Result.Fail(errors.Select(error => func(error))): Result.Ok();}
The text was updated successfully, but these errors were encountered:
I am using the following to fill functionality that's missing for my project. What are your thoughts on this and will you take a PR with similar functionality?
The text was updated successfully, but these errors were encountered: