private void ParseSupportedFileExtensions(XmlDocument doc) { ConfigurationFile.GetDefaultSupportedFileExtensions().ForEach(ext => SupportedExtensions.Add(ext)); foreach (XmlElement e in doc.SelectNodes("/ccm/fileExtensions/fileExtension")) { SupportedExtensions.Add(e.InnerText); } }
/// <summary> /// Adds the extension to the supported extensions. /// </summary> /// <param name="extensionName">Name of the extension.</param> protected void AddExtension(string extensionName) { if (SupportedExtensions == null) { SupportedExtensions = new PxExtensionNamesClass(); } SupportedExtensions.Add(extensionName); }