PRN221_-_SP_2023_-_FE_153.webp
hirosi212

PRN221_-_SP_2023_-_FE_153.webp

(Choose 1 answer)
public class Employee{
public string firstName { get; set; }
[Jsonlgnore]
public string lastName { get; set; }
}
//-
class Program{
static void Main(string[] args){string empJson = @"{
"""firstName""""""John"",
"""lastName"".""Doe""}";var emp = JsonSerializer. Deserialize<Employee>(empJson);Console.WriteLine("{emp.firstName}:{emp.lastName}");Console.ReadKey();}
}
Which one of the following is the output of the above code?
A. John:
B. John Doe
C. Doe:
D. Compile-time error
Exit 49

Thông tin

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

Share this media

Back
Bên trên Bottom