PRN221_-_FA_2024_-_RE_3088.webp
Q

PRN221_-_FA_2024_-_RE_3088.webp

Kizspy | Question: 32
(Choose 1 answer)
public record Order{
public int Orderld { get; set; }
public string OrderDate{ get; set; } }
class Program{static void Main(string[] args){Order order = new Order { Orderld = 1, OrderDate = "1/1/2050"};
var xs = new XmlSerializer(typeof(Order));StringWriter writer = new StringWriter();xs.Serialize(writer, order);Console.WriteLine($"{writer.ToString()}");Console.ReadKey();}
}
Which one of the following is the output of the above code?
A. <?xml version="1.0" encoding="utf-16"?>
<Order xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<OrderId>1</OrderId></Order>
<OrderDate>1/1/2050</OrderDate>
B. <?xml version="1.0" encoding="utf-16"?>
<ArrayOfOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Order>
<Orderld>1</OrderId>
FUO <Ordiri at </Orcer/2050</OrderDate>

Thông tin

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

Share this media

Back
Bên trên Bottom