コード例 #1
0
        private PhilosopherRunner[] CreatePhilosopherRunners(TableType tableType, int count)
        {
            IDomainFactory domainFactory = domainFactory_(tableType);

            Philosopher[]       philosophers = domainFactory.CreateDiningPhilosophers(count);
            PhilosopherRunner[] runners      = philosophers.Select(_ => new PhilosopherRunner(_)).ToArray();
            return(runners);
        }