Beispiel #1
0
        protected override object DoDeserializeValue(XmlReader reader, bool isSimpleValue)
        {
            reader.ReadStartElement(); // Read start of enclosing element
            Share result = Share.Deserialize(reader);

            reader.ReadEndElement(); // End of enclosing element
            return(result);
        }
        protected override object DoDeserializeValue(XmlReader reader, bool isSimpleValue)
        {
            ICollection <Share> result = new List <Share>();

            if (SoapHelper.ReadEmptyStartElement(reader)) // Read start of enclosing element
            {
                return(result);
            }
            while (reader.NodeType != XmlNodeType.EndElement)
            {
                result.Add(Share.Deserialize(reader));
            }
            reader.ReadEndElement(); // End of enclosing element
            return(result);
        }