private static void WriteMember(string name, XmlRpcValue value, IValueWriters writers, XElement element) { var writer = writers.GetWriter(value.GetType()); var nameElement = new XElement(XmlRpcTags.Name); nameElement.Add(name); element.Add(nameElement); writer.WriteTo(element, value); }
private static void WriteElement(XmlRpcValue value, XElement dataElement, IValueWriters writers) { var writer = writers.GetWriter(value.GetType()); writer?.WriteTo(dataElement, value); }