示例#1
0
        private static IEnumerable <Product> ParseProducts(string[] inputLines, int currentLine, Rack rack)
        {
            var rackProductsLines = inputLines
                                    .Skip(currentLine)
                                    .Take(rack.Height);

            return(ParseProductsFromLines(rackProductsLines));
        }
示例#2
0
 public void AddRack(Rack rack)
 {
     Racks.Add(rack);
 }