Exemple #1
0
        private static void ReadContent(XmlNode node, FeedContent content)
        {
            Guard.ArgumentNotNull("content", content);

            if (node == null)
            {
                return;
            }

            XmlAttribute type = node.Attributes["type"];

            if (type != null)
            {
                content.Type = type.Value;
            }
            content.Value = node.InnerXml;
        }
Exemple #2
0
        private static void ReadContent(XmlNode node, FeedContent content)
        {
            Guard.ArgumentNotNull("content", content);

            if (node == null)
                return;

            XmlAttribute type = node.Attributes["type"];
            if (type != null)
                content.Type = type.Value;
            content.Value = node.InnerXml;
        }