(Choose 1 answer)
public record Phone{
public string Name{ get; set; }
public double Price { get; set; }
}
11-
class Program{
static void Main(string[] args){
string phoneXML = @"<ArrayOfPhone>
<Phone>
<Name>Nokia</Name>
<Price>15.5</price>
</Phone>
<Phone>
<Name>Samsung</Name>
}
}
<Price>11.5</Price>
</Phone>
</ArrayOfPhone>";
var xs = new XmlSerializer(typeof(List<Phone>));
var phones = (List<Phone>)xs.Deserialize(new
StringReader(phoneXML));
Console.WriteLine("{phones. Average(p=>p.Price)}");Console.ReadKey();
Which one of the following is the output of the above code?
A. 13.5
B 155
Exit 28