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

            InitiailizeActions(Actions);
        }