Пример #1
0
 public Try <T> Recover(Func <Exception, Try <T> > recover)
 {
     return(Try.Create(() => recover(Exception)).SelectMany(x => x));
 }
Пример #2
0
 public Try <U> Select <U>(Func <T, U> selector)
 {
     return(Try.Create(() => selector(_value)));
 }
Пример #3
0
 public Try <T> Recover(Func <Exception, T> recover)
 {
     return(Try.Create(() => recover(Exception)));
 }