static void CategorizeTarget(ISubStep substep, SubStepTargets target, List <ISubStep> list) { if (!Targets(substep, target)) { return; } list.Add(substep); }
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); }
static bool Targets(ISubStep substep, SubStepTargets target) { return((substep.Targets & target) == target); }
static bool Targets(ISubStep substep, SubStepTargets target) => (substep.Targets & target) == target;