Slight edit to copyright statement. Added Diagnostics utility and extension methods...
[lwes-dotnet/github-mirror.git] / Org.Lwes / Config / TemplateDBConfigurationElementCollection.cs
blob7430a786ef61b1867ccb7fe38d0f4acedbadc1f0
1 //
2 // This file is part of the LWES .NET Binding (LWES.net)
3 //
4 // COPYRIGHT© 2009, Phillip Clark (cerebralkungfu[at*g mail[dot*com)
5 // original .NET implementation
6 //
7 // LWES.net is free software: you can redistribute it and/or modify
8 // it under the terms of the Lesser GNU General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
12 // LWES.net is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
17 // You should have received a copy of the Lesser GNU General Public License
18 // along with LWES.net. If not, see <http://www.gnu.org/licenses/>.
20 namespace Org.Lwes.Config
22 /// <summary>
23 /// Collection of EventTemplateDB configuration sections.
24 /// </summary>
25 public class TemplateDBConfigurationElementCollection : AbstractConfigurationElementCollection<TemplateDBConfigurationSection, string>
27 #region Methods
29 /// <summary>
30 /// Gets the element key for a templateDB configuration element. The key is the templateDB's name.
31 /// </summary>
32 /// <param name="element">the element</param>
33 /// <returns>The templateDB's name.</returns>
34 protected override string PerformGetElementKey(TemplateDBConfigurationSection element)
36 return element.Name;
39 #endregion Methods