Microsoft
70-513 · Question #133
A Windows Communication Foundation (WCF) application uses the following data contract. You need to ensure that the following XML segment is generated when the data contract is serialized. Which code…
The correct answer is D. [DataMember]. See the full explanation below for the reasoning.
Question
A Windows Communication Foundation (WCF) application uses the following data contract. You need to ensure that the following XML segment is generated when the data contract is serialized. Which code segment should you use?
Exhibit
Options
- A[DataMember]
- B[DataMember(EmitDefaultValue = false)]
- C[DataMember(EmitDefaultValue = true)]
- D[DataMember]
How the community answered
(45 responses)- A4% (2)
- B13% (6)
- C9% (4)
- D73% (33)
Community Discussion
No community discussion yet for this question.
