PRN221_-_SP_2023_-_FE_153.webp
hirosi212

PRN221_-_SP_2023_-_FE_153.webp

(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
Exit 2

Thông tin

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

Share this media

Back
Bên trên Bottom