Q34_141_20240331131155.jpg
Misa

Q34_141_20240331131155.jpg

  • Media owner Misa
  • Ngày thêm
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($"{emp.firstName}: (emp.lastName}"):
Console.ReadKey():
Which one of the following is the output of the above code?
A. Doe:
B. John: Doe
C. John:
D. Compile-time error


Q: 34

Thông tin

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

Image metadata

Filename
Q34_141_20240331131155.webp
File size
196.5 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên