using System; using System.Configuration; using System.ComponentModel; namespace Yavsc.Model.FrontOffice.Configuration { /// /// Catalog providers configuration collection. /// public class CatalogProvidersConfigurationCollection : ConfigurationElementCollection { /// /// Creates the new element. /// /// The new element. protected override ConfigurationElement CreateNewElement () { return new CatalogProviderConfigurationElement(); } /// /// Gets the element key. /// /// The element key. /// Element. protected override object GetElementKey (ConfigurationElement element) { return ((CatalogProviderConfigurationElement) element).Name; } /// /// Gets the element. /// /// The element. /// Name. public CatalogProviderConfigurationElement GetElement (string name) { return this.BaseGet(name) as CatalogProviderConfigurationElement; } } }