ПИбд-23 Салин Олег Алексеевич Лабораторная работа №2 #6

Closed
Oleja123 wants to merge 4 commits from Lab2 into Lab1
Showing only changes of commit bbf916e199 - Show all commits

View File

@ -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))