PRN221_-_RE_-_SU_2023_590.webp
Hagakure2002

PRN221_-_RE_-_SU_2023_590.webp

6
Answer (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(S" (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

Thông tin

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

Image metadata

Filename
PRN221_-_RE_-_SU_2023_590.webp
File size
57 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom