System.Xml.Extensions.GetText C# (CSharp) Méthode

GetText() public static méthode

public static GetText ( this xmlReader ) : string
xmlReader this
Résultat string
        public static string GetText(this XmlReader xmlReader)
        {
            string text = string.Empty;

            if (xmlReader.NodeType == XmlNodeType.Element)
            {
                text = xmlReader.ReadElementContentAs(typeof(string), null) as string;
            }

            return text;
        }
    }
Extensions