PRN221_-_FA_2024_-_FE_3051.webp
AllMight90

PRN221_-_FA_2024_-_FE_3051.webp

Kizspy | Question: 36
(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,""OrderDate""":""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

Thông tin

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

Share this media

Back
Bên trên Bottom