(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</Orderld>
<OrderDate> 1/1/2050</OrderDate>
</Order>
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>
Exit 15