public ActionGroup[] ToArray() { ActionGroup[] groups = new ActionGroup [Count]; List.CopyTo (groups, 0); return groups; }