首页 > 计算机类考试> 其他
题目内容 (请给出正确答案)
[主观题]

You are developing a Windows Communication Foundation (WCF) service that contains the foll

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))]

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
退出 登录/注册
发送账号至手机
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改