(Choose 1 answer)
public record Order{
}
11-
public int Orderld { get; set; }
public string OrderDate{ get; set; }
class Program{
static void Main(string[] args){List<Order> orders = new List<Order> { new Order{ OrderId=1, OrderDate="12/15/2030"}};var orderJson = JsonSerializer.Serialize(orders);Console.WriteLine($"{orderJson}");Console.ReadKey();}
}
Which one of the following is the output of the above code?
A. [{"Orderld": 1, "OrderDate":"12/15/2030"}]
B. ["Orderld":1,"OrderDate":"12/15/2030"}
C. ["OrderId":1,"OrderDate":"12/15/2030"]
D. An exception will be thrown
Exit 3