Ejemplo n.º 1
0
        public override void WriteObject(XmlWriter writer, object graph)
        {
            GetMeasurementsResponse GetMeasurementsResponseField = ((GetMeasurementsResponse)(graph));

            if (WriteParentElement(writer, true, true, graph))
            {
                schemas.datacontract.org.ClassLibrary.ArrayOfMeasurementDataContractSerializer GetMeasurementsResultDCS = new schemas.datacontract.org.ClassLibrary.ArrayOfMeasurementDataContractSerializer("GetMeasurementsResult", "http://tempuri.org/", "http://schemas.datacontract.org/2004/07/ClassLibrary3");
                GetMeasurementsResultDCS.BodyParts = this.BodyParts;
                GetMeasurementsResultDCS.WriteObject(writer, GetMeasurementsResponseField.GetMeasurementsResult);
                writer.WriteEndElement();
            }
            return;
        }
Ejemplo n.º 2
0
        public override object ReadObject(XmlReader reader)
        {
            GetMeasurementsResponse GetMeasurementsResponseField = null;

            if (IsParentStartElement(reader, false, true))
            {
                GetMeasurementsResponseField = new GetMeasurementsResponse();
                reader.Read();
                schemas.datacontract.org.ClassLibrary.ArrayOfMeasurementDataContractSerializer GetMeasurementsResultDCS = new schemas.datacontract.org.ClassLibrary.ArrayOfMeasurementDataContractSerializer("GetMeasurementsResult", "http://tempuri.org/", "http://schemas.datacontract.org/2004/07/ClassLibrary3");
                GetMeasurementsResultDCS.BodyParts = this.BodyParts;
                GetMeasurementsResponseField.GetMeasurementsResult = ((schemas.datacontract.org.ClassLibrary.ArrayOfMeasurement)(GetMeasurementsResultDCS.ReadObject(reader)));
                reader.ReadEndElement();
            }
            return(GetMeasurementsResponseField);
        }