示例#1
0
 public static IIsPossibly <TT> TransformInner <T, TT>(this IIsPossibly <T> self, Func <T, TT> func)
 {
     if (self is IIsDefinately <T> isYes)
     {
         return(Possibly.Is <TT>(func(isYes.Value)));
     }
     return(Possibly.IsNot <TT>());
 }
示例#2
0
 public static IIsPossibly <TT> IfIsReturns <T, TT>(this IIsPossibly <T> self, Func <T, IIsPossibly <TT> > func)
 {
     if (self is IIsDefinately <T> isYes)
     {
         return(func(isYes.Value));
     }
     return(Possibly.IsNot <TT>());
 }