Example #1
0
        public static ValueWrapper <TResult> SelectMany <TSource, TValue, TResult>
            (this ValueWrapper <TSource> source,
            Func <TSource, ValueWrapper <TValue> > valueSelector,
            Func <TSource, TValue, TResult> resultSelector)
        {
            var value0 = valueSelector(source.Value);

            return(new ValueWrapper <TResult>(resultSelector(source.Value, value0.Value)));
        }
Example #2
0
 public static ValueWrapper <TResult> Select <TSource, TResult>
     (this ValueWrapper <TSource> source, Func <TSource, TResult> sel)
 {
     return(new ValueWrapper <TResult>(sel(source.Value)));
 }