public override void WriteObject(XmlWriter writer, object graph) { GetDataResponse GetDataResponseField = ((GetDataResponse)(graph)); if (WriteParentElement(writer, true, true, graph)) { schemas.datacontract.org.WcfMtomService.MtomDataDataContractSerializer GetDataResultDCS = new schemas.datacontract.org.WcfMtomService.MtomDataDataContractSerializer("GetDataResult", "http://tempuri.org/", "http://schemas.datacontract.org/2004/07/WcfMtomService"); GetDataResultDCS.BodyParts = this.BodyParts; GetDataResultDCS.WriteObject(writer, GetDataResponseField.GetDataResult); writer.WriteEndElement(); } return; }
public override object ReadObject(XmlReader reader) { GetDataResponse GetDataResponseField = null; if (IsParentStartElement(reader, false, true)) { GetDataResponseField = new GetDataResponse(); reader.Read(); schemas.datacontract.org.WcfMtomService.MtomDataDataContractSerializer GetDataResultDCS = new schemas.datacontract.org.WcfMtomService.MtomDataDataContractSerializer("GetDataResult", "http://tempuri.org/", "http://schemas.datacontract.org/2004/07/WcfMtomService"); GetDataResultDCS.BodyParts = this.BodyParts; GetDataResponseField.GetDataResult = ((schemas.datacontract.org.WcfMtomService.MtomData)(GetDataResultDCS.ReadObject(reader))); reader.ReadEndElement(); } return(GetDataResponseField); }
public override object ReadObject(XmlReader reader) { GetDataResponse GetDataResponseField = null; if (IsParentStartElement(reader, false, true)) { GetDataResponseField = new GetDataResponse(); reader.Read(); schemas.datacontract.org.WcfMtomService.MtomDataDataContractSerializer GetDataResultDCS = new schemas.datacontract.org.WcfMtomService.MtomDataDataContractSerializer("GetDataResult", "http://tempuri.org/", "http://schemas.datacontract.org/2004/07/WcfMtomService"); GetDataResultDCS.BodyParts = this.BodyParts; GetDataResponseField.GetDataResult = ((schemas.datacontract.org.WcfMtomService.MtomData)(GetDataResultDCS.ReadObject(reader))); reader.ReadEndElement(); } return GetDataResponseField; }