Ejemplo n.º 1
0
 public static OneOf <TSuccess, Error <string> > SelectErrorString <TSuccess, TErrorOriginal>(
     this OneOf <TSuccess, TErrorOriginal> source,
     Func <TErrorOriginal, string> projection)
 {
     return(source.SelectError(e => new Error <string>(projection(e))));
 }