Ejemplo n.º 1
0
 /// <summary>Read Element named ext. </summary>
 private void  ReadExt(System.Xml.XmlElement element, MimeType type)
 {
     System.Xml.XmlNodeList nodes = element.ChildNodes;
     for (int i = 0; i < nodes.Count; i++)
     {
         System.Xml.XmlNode node = nodes.Item(i);
         if (System.Convert.ToInt16(node.NodeType) == (short)System.Xml.XmlNodeType.Text)
         {
             type.AddExtension(((System.Xml.XmlText)node).Data);
         }
     }
 }
Ejemplo n.º 2
0
        /// <summary>Read Element named ext. </summary>
        private static void  ReadExt(XmlElement element, MimeType type)
        {
            var nodes = element.ChildNodes;

            for (var i = 0; i < nodes.Count; i++)
            {
                var node = nodes.Item(i);
                if (Convert.ToInt16(node.NodeType) == (short)XmlNodeType.Text)
                {
                    type.AddExtension(((XmlText)node).Data);
                }
            }
        }