ПИбд-23 Салин Олег Алексеевич Лабораторная работа №2 #6
@ -61,7 +61,7 @@ namespace IceCreamShopFileImplement.Models
|
||||
IceCreamName = element.Element("IceCreamName")!.Value,
|
||||
Price = Convert.ToDouble(element.Element("Price")!.Value),
|
||||
Components =
|
||||
element.Element("IceCreamComponents")!.Elements("IceCreamComponents")
|
||||
element.Element("IceCreamComponents")!.Elements("IceCreamComponent")
|
||||
.ToDictionary(x =>
|
||||
Convert.ToInt32(x.Element("Key")?.Value), x =>
|
||||
Convert.ToInt32(x.Element("Value")?.Value))
|
||||
|
Loading…
Reference in New Issue
Block a user