Esempio n. 1
0
 public override void WriteObject(XmlWriter writer, object graph)
 {
     LogInResponse LogInResponseField = ((LogInResponse)(graph));
     if (WriteParentElement(writer, true, true, graph))
     {
         schemas.datacontract.org.UserCompositeTypeDataContractSerializer LogInResultDCS = new schemas.datacontract.org.UserCompositeTypeDataContractSerializer("LogInResult", "http://tempuri.org/", "http://schemas.datacontract.org/2004/07/");
         LogInResultDCS.BodyParts = this.BodyParts;
         LogInResultDCS.WriteObject(writer, LogInResponseField.LogInResult);
         writer.WriteEndElement();
     }
     return;
 }
Esempio n. 2
0
 public override object ReadObject(XmlReader reader)
 {
     LogInResponse LogInResponseField = null;
     if (IsParentStartElement(reader, false, true))
     {
         LogInResponseField = new LogInResponse();
         reader.Read();
         schemas.datacontract.org.UserCompositeTypeDataContractSerializer LogInResultDCS = new schemas.datacontract.org.UserCompositeTypeDataContractSerializer("LogInResult", "http://tempuri.org/", "http://schemas.datacontract.org/2004/07/");
         LogInResultDCS.BodyParts = this.BodyParts;
         LogInResponseField.LogInResult = ((schemas.datacontract.org.UserCompositeType)(LogInResultDCS.ReadObject(reader)));
         reader.ReadEndElement();
     }
     return LogInResponseField;
 }