public void Add(AirplaneList airplanes) { foreach (var airplane in airplanes) { this.Add(airplane); } }
//public void FromList(List<Airplane> airplanes) //{ // this.Clear(); // this.AddRange(airplanes); //} public AirplaneList Copy() { var list = new AirplaneList(); foreach (var airplane in this) { list.Add(airplane.Copy()); } return(list); }
//public AirplaneList List { get; set; } public void Add(AirplaneList airplanes) { //this.Dictionary.Add(airplanes); //var airplanes = new List<Airplane>(airplanes); this.List = new AirplaneList(); foreach (var airplane in airplanes) { this.List.Add(airplane.Copy()); } //this.List.AddRange(this.Dictionary.Values.ToList()); // this.List.AddRange(list); //this.List.FromList(this.Dictionary.Values.ToList()); }
public void ToItemsList() { var list = new AirplaneList(); }