using System.Configuration; namespace ServiceStack.RazorEngine.Configuration { /// /// Represents a collection of items. /// [ConfigurationCollection(typeof(NamespaceConfigurationElement))] public class NamespaceConfigurationElementCollection : ConfigurationElementCollection { #region Methods /// /// When overridden in a derived class, creates a new . /// /// /// A new . /// protected override ConfigurationElement CreateNewElement() { return new NamespaceConfigurationElement(); } /// /// Gets the element key for a specified configuration element when overridden in a derived class. /// /// The to return the key for. /// /// An that acts as the key for the specified . /// protected override object GetElementKey(ConfigurationElement element) { return ((NamespaceConfigurationElement)element).Namespace; } #endregion } }