Пример #1
0
 public static OperationResult CreateError(OperationResult result)
 => new OperationResult(result.ErrorList);
Пример #2
0
 public static OperationResult <R> CreateError <R>(OperationResult result)
 => new OperationResult <R>(result.ErrorList);
Пример #3
0
 public static OperationResult <R> AsError <R>(this OperationResult result)
 {
     return(OperationResult.CreateError <R>(result.ErrorList));
 }