예제 #1
0
 /// <summary>
 /// Converts an object into its XML representation.
 /// </summary>
 /// <param name="writer">The <see cref="T:System.Xml.XmlWriter"/> stream to which the object is serialized.</param>
 public void WriteXml(XmlWriter writer)
 {
     writer.WriteAttributeString("sender-address", SenderAddress);
     writer.WriteAttributeString("sender-name", SenderName);
     writer.WriteRimTime("reply-time", ReplyTime);
     writer.WriteStartElement("response-result");
     writer.WriteAttributeString("code", Code.Code);
     writer.WriteAttributeString("desc", Description);
     writer.WriteFullEndElement();
 }