/* For information about this file, see /Includes.js.aspx.cs in the SampleWebsite. */ using System; using System.Xml; using System.Text; using System.Configuration; using System.Collections.ObjectModel; namespace SampleLibrary.Configuration { class JavaScriptImportSectionHandler : IConfigurationSectionHandler { public Object Create(Object parent, Object configContext, XmlNode section) { Collection set = new Collection( ); foreach (XmlNode child in section.ChildNodes) { set.Add(new JavaScriptImport(child.Attributes["Name"].Value)); } JavaScriptImportConfigSection config = new JavaScriptImportConfigSection(set); return config; } } }