Microsoft
70-513 · Question #63
You are developing a Windows Communication Foundation (WCF) service that contains the following service contract. You need to ensure that RecordPayments can correctly deserialize into an Employee or…
The correct answer is D. Add the following KnownType attributes to the Person class. See the full explanation below for the reasoning.
Question
You are developing a Windows Communication Foundation (WCF) service that contains the following service contract. You need to ensure that RecordPayments can correctly deserialize into an Employee or a Customer object. What should you do?
Exhibit
Options
- AAdd the following KnownType attribute to the Employee class and to the Customer class.
- BImplement the IExtensibleDataObject interface in the Person class.
- CImplement the IExtension(ofType(T)) interface in the Person class.
- DAdd the following KnownType attributes to the Person class.
How the community answered
(23 responses)- A4% (1)
- B4% (1)
- C9% (2)
- D83% (19)
Community Discussion
No community discussion yet for this question.
