Question:You need to serialize an array named 'Street'. You want to set the array name as 'StreetName' after serialization. Which of the following codes will serialize the array correctly?
A public String[] Street; [XmlArray("StreetName",street)];
B [XmlArray("StreetName")] public String[] Street;
C public String[] Street; [XmlArrayName("StreetName"),Street];
D None of these
+ AnswerB
+ Explanation
+ Report