private void Remove(Action action) { List<Action> actionsList = actions.ToList(); actionsList.Remove(action); actions = new Queue<Action>(actionsList); }