Bookstore.BookSearcher.BookSearcherUI.GetAuthorName C# (CSharp) Метод

GetAuthorName() статический приватный Метод

static private GetAuthorName ( XmlDocument queryDocument ) : string
queryDocument System.Xml.XmlDocument
Результат string
        static string GetAuthorName(XmlDocument queryDocument)
        {
            string xpathQueryForAuthor = "/query/author";
            XmlNode authorNode = queryDocument.SelectSingleNode(xpathQueryForAuthor);
            string author = null;
            if (authorNode != null)
            {
                author = authorNode.InnerXml.Trim().ToLower();
            }

            return author;
        }