Exemplo n.º 1
0
        /// <summary>
        ///   Reading the property
        /// </summary>
        /// <returns></returns>
        public Property Deserialize()
        {
            // give the first valid tag back
            string elementName = _reader.ReadElement();

            // In what xml tag is the property saved
            PropertyArt propertyArt = getPropertyArtFromString(elementName);

            // check if the property was found
            if (propertyArt == PropertyArt.Unknown)
            {
                return(null);
            }

            Property result = deserialize(propertyArt, null);

            return(result);
        }