Ejemplo n.º 1
0
        public static IAction Or(this IAction me, IEnumerable <IAction> others)
        {
            if (me == null)
            {
                throw new ArgumentNullException("me");
            }
            if (others == null)
            {
                throw new ArgumentNullException("others");
            }

            return(InputAction.AnyOf(others.Append(me)));
        }
Ejemplo n.º 2
0
 public static IAction AnyOf(params IAction[] actions)
 {
     return(InputAction.AnyOf((IEnumerable <IAction>)actions));
 }
Ejemplo n.º 3
0
 public static IAction Any(IEnumerable <Func <IAction> > actionSelectors)
 {
     return(InputAction.AnyOf(actionSelectors.Select(LambdaAction.From)));
 }