private static void InitiailizeActions(RoverActionCollection actions) { Assembly .GetExecutingAssembly() .GetTypesByAncestor <IRoverAction>(true) .CreateInstance <IRoverAction>() .ForEach(Actions.Add); }
static RoverActionPool() { Actions = new RoverActionCollection(); InitiailizeActions(Actions); }