public override void WriteObject(XmlWriter writer, object graph) { GetNestedDataResponse GetNestedDataResponseField = ((GetNestedDataResponse)(graph)); if (WriteParentElement(writer, true, true, graph)) { schemas.datacontract.org.WcfMtomService.NestedClassDataContractSerializer GetNestedDataResultDCS = new schemas.datacontract.org.WcfMtomService.NestedClassDataContractSerializer("GetNestedDataResult", "http://tempuri.org/", "http://schemas.datacontract.org/2004/07/WcfMtomService"); GetNestedDataResultDCS.BodyParts = this.BodyParts; GetNestedDataResultDCS.WriteObject(writer, GetNestedDataResponseField.GetNestedDataResult); writer.WriteEndElement(); } return; }
public override object ReadObject(XmlReader reader) { GetNestedDataResponse GetNestedDataResponseField = null; if (IsParentStartElement(reader, false, true)) { GetNestedDataResponseField = new GetNestedDataResponse(); reader.Read(); schemas.datacontract.org.WcfMtomService.NestedClassDataContractSerializer GetNestedDataResultDCS = new schemas.datacontract.org.WcfMtomService.NestedClassDataContractSerializer("GetNestedDataResult", "http://tempuri.org/", "http://schemas.datacontract.org/2004/07/WcfMtomService"); GetNestedDataResultDCS.BodyParts = this.BodyParts; GetNestedDataResponseField.GetNestedDataResult = ((schemas.datacontract.org.WcfMtomService.NestedClass)(GetNestedDataResultDCS.ReadObject(reader))); reader.ReadEndElement(); } return(GetNestedDataResponseField); }
public override object ReadObject(XmlReader reader) { GetNestedDataResponse GetNestedDataResponseField = null; if (IsParentStartElement(reader, false, true)) { GetNestedDataResponseField = new GetNestedDataResponse(); reader.Read(); schemas.datacontract.org.WcfMtomService.NestedClassDataContractSerializer GetNestedDataResultDCS = new schemas.datacontract.org.WcfMtomService.NestedClassDataContractSerializer("GetNestedDataResult", "http://tempuri.org/", "http://schemas.datacontract.org/2004/07/WcfMtomService"); GetNestedDataResultDCS.BodyParts = this.BodyParts; GetNestedDataResponseField.GetNestedDataResult = ((schemas.datacontract.org.WcfMtomService.NestedClass)(GetNestedDataResultDCS.ReadObject(reader))); reader.ReadEndElement(); } return GetNestedDataResponseField; }