Пример #1
0
        public override void WriteObject(XmlWriter writer, object graph)
        {
            SetNestedData SetNestedDataField = ((SetNestedData)(graph));

            if (WriteParentElement(writer, true, true, graph))
            {
                schemas.datacontract.org.WcfMtomService.NestedClassDataContractSerializer dataDCS = new schemas.datacontract.org.WcfMtomService.NestedClassDataContractSerializer("data", "http://tempuri.org/", "http://schemas.datacontract.org/2004/07/WcfMtomService");
                dataDCS.BodyParts = this.BodyParts;
                dataDCS.WriteObject(writer, SetNestedDataField.data);
                writer.WriteEndElement();
            }
            return;
        }
Пример #2
0
        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;
        }
Пример #3
0
        public override object ReadObject(XmlReader reader)
        {
            SetNestedData SetNestedDataField = null;

            if (IsParentStartElement(reader, false, true))
            {
                SetNestedDataField = new SetNestedData();
                reader.Read();
                schemas.datacontract.org.WcfMtomService.NestedClassDataContractSerializer dataDCS = new schemas.datacontract.org.WcfMtomService.NestedClassDataContractSerializer("data", "http://tempuri.org/", "http://schemas.datacontract.org/2004/07/WcfMtomService");
                dataDCS.BodyParts       = this.BodyParts;
                SetNestedDataField.data = ((schemas.datacontract.org.WcfMtomService.NestedClass)(dataDCS.ReadObject(reader)));
                reader.ReadEndElement();
            }
            return(SetNestedDataField);
        }
Пример #4
0
        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);
        }
Пример #5
0
 public override void WriteObject(XmlWriter writer, object graph)
 {
     SetNestedData SetNestedDataField = ((SetNestedData)(graph));
     if (WriteParentElement(writer, true, true, graph))
     {
         schemas.datacontract.org.WcfMtomService.NestedClassDataContractSerializer dataDCS = new schemas.datacontract.org.WcfMtomService.NestedClassDataContractSerializer("data", "http://tempuri.org/", "http://schemas.datacontract.org/2004/07/WcfMtomService");
         dataDCS.BodyParts = this.BodyParts;
         dataDCS.WriteObject(writer, SetNestedDataField.data);
         writer.WriteEndElement();
     }
     return;
 }
Пример #6
0
 public override object ReadObject(XmlReader reader)
 {
     SetNestedData SetNestedDataField = null;
     if (IsParentStartElement(reader, false, true))
     {
         SetNestedDataField = new SetNestedData();
         reader.Read();
         schemas.datacontract.org.WcfMtomService.NestedClassDataContractSerializer dataDCS = new schemas.datacontract.org.WcfMtomService.NestedClassDataContractSerializer("data", "http://tempuri.org/", "http://schemas.datacontract.org/2004/07/WcfMtomService");
         dataDCS.BodyParts = this.BodyParts;
         SetNestedDataField.data = ((schemas.datacontract.org.WcfMtomService.NestedClass)(dataDCS.ReadObject(reader)));
         reader.ReadEndElement();
     }
     return SetNestedDataField;
 }
Пример #7
0
 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;
 }
Пример #8
0
 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;
 }