Beispiel #1
0
            public TValue RunReader(TEnvironment environment)
            {
                TValue result = _self.RunReader(environment);

                _action(result);
                return(result);
            }
Beispiel #2
0
 public TValue RunReader(TEnvironment environment)
 {
     if (_selector())
     {
         return(_thenSource.RunReader(environment));
     }
     else
     {
         return(_elseSource.RunReader(environment));
     }
 }
Beispiel #3
0
            public TValue RunReader(TEnvironment environment)
            {
                TValue result = _self.RunReader(environment);

                if (_selector(result))
                {
                    return(result);
                }
                else
                {
                    return(_elseSource.RunReader(environment));
                }
            }
 public TResult RunReader(TEnvironment environment)
 {
     return(_selector(_self.RunReader(environment)));
 }
Beispiel #5
0
 TValue RunSelf()
 {
     return(_self.RunReader(_environment));
 }
Beispiel #6
0
 public static void Execute <TEnvironment, TValue>(this IReaderMonad <TEnvironment, TValue> self, TEnvironment environment)
 {
     self.RunReader(environment);
 }
Beispiel #7
0
        public static void Execute <TEnvironment, TValue>(this IReaderMonad <TEnvironment, TValue> self, TEnvironment environment, Action <TValue> onValue)
        {
            TValue result = self.RunReader(environment);

            onValue(result);
        }