PRN221_-_REB5_-_FA_2023_1337.webp
A

PRN221_-_REB5_-_FA_2023_1337.webp

(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

Thông tin

Category
PRN221
Thêm bởi
Alphonse91
Ngày thêm
Lượt xem
1,287
Lượt bình luận
6
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRN221_-_REB5_-_FA_2023_1337.webp
File size
61.2 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom