public ActionDictionary InitAuto() { var actionMinLength = ValidActions.Select(a => a.route.Length).Min(); var actions = new ActionDictionary(actionMinLength); AddActions(actions, ValidActions, 0); return(actions); }
private void AddActions(ActionDictionary actions, ICollection <(string route, Action <ActionStatus> action)> add, int index)