Read() публичный Метод

public Read ( ) : string
Результат string
Пример #1
0
        public Release Read()
        {
            string text = textReader.Read();

            if (text == null)
            {
                return(null);
            }
            text = Utility.TrimString(text, "<releases>");
            text = Utility.TrimString(text, "</releases>");
            text = Utility.FixXmlText(text);
            XDocument doc = XDocument.Parse(text);

            return(DataReader.ReadRelease(doc.Root));
        }
Пример #2
0
        public Artist Read()
        {
            string text = textReader.Read();

            if (text == null)
            {
                return(null);
            }
            text = Utility.TrimString(text, "<artists>");
            text = Utility.TrimString(text, "</artists>");
            text = Utility.FixXmlText(text);
            XDocument doc = XDocument.Parse(text);

            return(DataReader.ReadArtist(doc.Root));
        }