PRN221_-_FA_2023_-_RE_1140.webp
G

PRN221_-_FA_2023_-_RE_1140.webp

(16)
(Choose 1 answer)
A. Compile-time error
B. John:
C. Doe:
D. John Doe
}
//-
}
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?


Thông tin

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

Image metadata

Filename
PRN221_-_FA_2023_-_RE_1140.webp
File size
55.1 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom