(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