コード例 #1
0
 public Train(Locomotive locomotive, List <Wagon> wagons) : this()
 {
     Locomotive = locomotive;
     Wagons.AddRange(wagons);
 }
コード例 #2
0
 public Station(string name, IEnumerable <Wagon> wagons, IEnumerable <Locomotive> locomotives) : this()
 {
     Name = name;
     Wagons.AddRange(wagons);
     Locomotives.AddRange(locomotives);
 }