public void Serialize(Stream o) { using (XmlTextWriter writer = o.UTF8XmlTextWriter()) { writer.WriteStartElement("methodResponse"); writer.WriteStartElement("params"); writer.WriteStartElement("param"); XmlRpc.Serialize(ReturnValue, writer); writer.WriteEndElement(); writer.WriteEndElement(); writer.WriteEndElement(); } }
public void Serialize(Stream o) { using (var writer = o.UTF8XmlTextWriter()) { writer.WriteStartElement("methodCall"); writer.WriteNamedValue("methodName", MethodName); writer.WriteStartElement("params"); foreach (var iv in Params) { writer.WriteStartElement("param"); XmlRpc.Serialize(iv, writer); writer.WriteEndElement(); } writer.WriteEndElement(); writer.WriteEndElement(); } }