Read() public method

public Read ( ) : string
return 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));
        }