using System; using System.Configuration; namespace Yavsc { /// /// Thanks configuration collection. /// Imlements the configuration, /// providing the thanks collection /// public class ThanksConfigurationCollection : ConfigurationElementCollection { /// /// Gets the element key. /// /// The element key. /// Element. protected override object GetElementKey (ConfigurationElement element) { return ((ThanksConfigurationElement) element).Name; } /// /// Creates the new element. /// /// The new element. protected override ConfigurationElement CreateNewElement () { return new ThanksConfigurationElement(); } /// /// Gets the element. /// /// The element. /// Name. public ThanksConfigurationElement GetElement (string name) { return this.BaseGet(name) as ThanksConfigurationElement; } } }