private AddExtension ( string ext ) : void | ||
ext | string | extension to add to the list of extensions associated /// to this mime-type. /// |
return | void |
/// <summary>Read Element named ext. </summary> private void ReadExt(XmlElement element, MimeType type) { XmlNodeList nodes = element.ChildNodes; for (int i = 0; i < nodes.Count; i++) { XmlNode node = nodes.Item(i); if (Convert.ToInt16(node.NodeType) == (short)XmlNodeType.Text) { type.AddExtension(((XmlText)node).Data); } } }
/// <summary>Read Element named ext. </summary> private void ReadExt(XmlElement element, MimeType type) { XmlNodeList nodes = element.ChildNodes; for (int i = 0; i < nodes.Count; i++) { XmlNode node = nodes.Item(i); if (Convert.ToInt16(node.NodeType) == (short) XmlNodeType.Text) { type.AddExtension(((XmlText) node).Data); } } }