PRN221_-_REB5_-_FA_2023_1337.webp
A

PRN221_-_REB5_-_FA_2023_1337.webp

(Choose 1 answer)
public class Order{
public int Orderld { get; set; }
public double Total{ get; set; }
}
//
class Program{
static void Main(string[] args){
string orderJson = @"[Orderld 1,Total: 10.5},
"OrderId":2,"""Total:20.5)
]";
var orders = JsonSerializer.
Deserialize<List<Order>>(orderJson);
Console.WriteLine($"{orders.Count): {orders.Sum(o=>o. Total)}");Console.ReadKey();
}
}
Which one of the following is the output of the above code?
A. 2:31
B. 2:10.5
C. 2:20.5
D. 2:30

Exit 43

Thông tin

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

Image metadata

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

Share this media

Back
Bên trên Bottom