Exemple #1
0
        static void CategorizeTarget(ISubStep substep, SubStepTargets target, List <ISubStep> list)
        {
            if (!Targets(substep, target))
            {
                return;
            }

            list.Add(substep);
        }
Exemple #2
0
        static void CategorizeTarget(ISubStep substep, SubStepTargets target, ref List <ISubStep> list)
        {
            if (!Targets(substep, target))
            {
                return;
            }

            if (list == null)
            {
                list = new List <ISubStep> ();
            }

            list.Add(substep);
        }
Exemple #3
0
 static bool Targets(ISubStep substep, SubStepTargets target)
 {
     return((substep.Targets & target) == target);
 }
Exemple #4
0
 static bool Targets(ISubStep substep, SubStepTargets target) => (substep.Targets & target) == target;