Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        private static void WriteElement(XmlRpcValue value, XElement dataElement, IValueWriters writers)
        {
            var writer = writers.GetWriter(value.GetType());

            writer?.WriteTo(dataElement, value);
        }