PRN221_-_SU_2023_-_Block_5_-_FE_731.webp
Iida95

PRN221_-_SU_2023_-_Block_5_-_FE_731.webp

  • Media owner Iida95
  • Ngày thêm
OD
(Choose 1 answer)
A. ["fullName":"john","age":20}
B. "firstName":"john","age":20}
C. ("firstName":"john"}
D. ["fullName":"john"}
public class Student{
[JsonProperty Name("fullName")]
public string firstName { get; set; }
public int age{ get; set; }
}
//
class Program{
static void Main(string[] args){Student john = new Student { firstName = "john", age=20 };var strJson = JsonSerializer.Serialize(john);}
Console.WriteLine(strJson);Console.ReadKey();
} Which one of the following is the output of the above code?

Exit 8

Thông tin

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

Image metadata

Filename
PRN221_-_SU_2023_-_Block_5_-_FE_731.webp
File size
57.2 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom