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