public StationInventories(XElement xml) { this.Stations = new List<StationInventory>(); var stations = xml.Elements("station"); foreach(XElement station in stations) { StationInventory entry = new StationInventory(station); this.Stations.Add(entry); } }
public StationInventories(XElement xml) { this.Stations = new List <StationInventory>(); var stations = xml.Elements("station"); foreach (XElement station in stations) { StationInventory entry = new StationInventory(station); this.Stations.Add(entry); } }