我们在 WCF 服务中有一个类,如下所示
[DataContract]
public class SampleClass:ICloneable
{ public object Clone() { return MemberwiseClone(); } .... }
在添加服务引用的客户端,我在对象浏览器中打开引用,但它没有将 ICloneable 作为继承的接口传递,如“IExtensibleDataObject”
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
[System.Runtime.Serialization.DataContractAttribute(Name="SampleClass",
Namespace="http://schemas.datacontract.org/2004/07/TestService")]
[System.SerializableAttribute()]
public partial class SampleClass : object, System.Runtime.Serialization.IExtensibleDataObject,
System.ComponentModel.INotifyPropertyChanged { .... }
有谁知道我怎样才能通过它?