(44)
(Choose 1 answer)
public record Order{
public int Orderld { get; set; }
public string OrderDate{ get; set; }
}
//
class Program{
static void Main(string[] args){
string orderJson = @"[
{"OrderId":100, 100, Order Date 1/1/2020"}
var orders = JsonSerializer.Deserialize<Order>(orderJson);
Console.WriteLine($" {orders.Count}");
Console.ReadKey();
}
}
Which one of the following is the output of the above code?
A. Compile-time error
B. 2
C. 1
D. 0