试题详情
- 单项选择题 You are developing a Windows Communication Foundation (WCF) service that contains the following service contract.[ServiceContract( )]public interface IPaymentService{ [OperationContract( )] void RecordPayments(Person person);}public class Person{ ... }public class Employee : Person{ ... }public class Customer : Person{ ... }You need to ensure that RecordPayments can correctly deserialize into an Employee or a Customer object. What should you do?()
A、Add the following KnownType attribute to the Employee class and to the Customer class. [KnownType(GetType(Person))]
B、Implement the IExtensibleDataObject interface in the Person class.
C、Implement the IExtension(ofType(T)) interface in the Person class.
D、Add the following KnownType attributes to the Person class. [KnownType(GetType(Employee))] [KnownType(GetType(Customer))]
- D
关注下方微信公众号,在线模考后查看
热门试题
- You are t
- You are t
- You are d
- 技术支持工程师报告说“在SQL̳
- Yourcomputerisunable
- You are the network
- Your company uses Ne
- Your network contai
- You need
- Your network&e
- Youarethenetworkadmi
- You are the adminis
- Critical servi
- 你是Wingtip Toys
- Your Windows&e
- You are
- Your home&ensp
- Certkiller是一个Active&
- 你的网络中包含100台运行Windows
- You create a Web sit