PRN221_-_RE_-_SU_2023_590.webp
Hagakure2002

PRN221_-_RE_-_SU_2023_590.webp

35
(Choose 1 answer)

public record Phone{
public string Name{ get; set; }
public double Price { get; set; }
}
//
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(newStringReader(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

Thông tin

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

Image metadata

Filename
PRN221_-_RE_-_SU_2023_590.webp
File size
61.1 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom